Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist CID 1293652: Forward NULL d...



details:   https://anonhg.NetBSD.org/src/rev/a138c15dc84e
branches:  trunk
changeset: 337392:a138c15dc84e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 13 17:59:21 2015 +0000

description:
CID 1293652: Forward NULL deref

diffstat:

 crypto/external/bsd/openssh/dist/clientloop.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 467256128eea -r a138c15dc84e crypto/external/bsd/openssh/dist/clientloop.c
--- a/crypto/external/bsd/openssh/dist/clientloop.c     Mon Apr 13 17:54:52 2015 +0000
+++ b/crypto/external/bsd/openssh/dist/clientloop.c     Mon Apr 13 17:59:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clientloop.c,v 1.12 2015/04/03 23:58:19 christos Exp $ */
+/*     $NetBSD: clientloop.c,v 1.13 2015/04/13 17:59:21 christos Exp $ */
 /* $OpenBSD: clientloop.c,v 1.272 2015/02/25 19:54:02 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
@@ -61,7 +61,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: clientloop.c,v 1.12 2015/04/03 23:58:19 christos Exp $");
+__RCSID("$NetBSD: clientloop.c,v 1.13 2015/04/13 17:59:21 christos Exp $");
 
 #include <sys/param.h> /* MIN MAX */
 #include <sys/types.h>
@@ -1594,7 +1594,8 @@
                        channel_after_select(readset, writeset);
                        if (need_rekeying || packet_need_rekeying()) {
                                debug("need rekeying");
-                               active_state->kex->done = 0;
+                               if (active_state->kex != NULL)
+                                       active_state->kex->done = 0;
                                if ((r = kex_send_kexinit(active_state)) != 0)
                                        fatal("%s: kex_send_kexinit: %s",
                                            __func__, ssh_err(r));



Home | Main Index | Thread Index | Old Index