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 Since now we are called fro...



details:   https://anonhg.NetBSD.org/src/rev/2fd23a03ff8f
branches:  trunk
changeset: 320151:2fd23a03ff8f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 24 15:36:31 2018 +0000

description:
Since now we are called from cleanup_exit() make sure that we have a state
to work with. Found by ASAN.

diffstat:

 crypto/external/bsd/openssh/dist/pfilter.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 5dc493f73827 -r 2fd23a03ff8f crypto/external/bsd/openssh/dist/pfilter.c
--- a/crypto/external/bsd/openssh/dist/pfilter.c        Sun Jun 24 13:35:32 2018 +0000
+++ b/crypto/external/bsd/openssh/dist/pfilter.c        Sun Jun 24 15:36:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfilter.c,v 1.5 2018/04/06 18:59:00 christos Exp $     */
+/*     $NetBSD: pfilter.c,v 1.6 2018/06/24 15:36:31 christos Exp $     */
 #include "namespace.h"
 #include "includes.h"
 #include "ssh.h"
@@ -12,7 +12,7 @@
 #endif
 
 #include "includes.h"
-__RCSID("$NetBSD: pfilter.c,v 1.5 2018/04/06 18:59:00 christos Exp $");
+__RCSID("$NetBSD: pfilter.c,v 1.6 2018/06/24 15:36:31 christos Exp $");
 
 void
 pfilter_init()
@@ -27,6 +27,8 @@
 {
 #ifndef SMALL
        int fd;
+       if (active_state == NULL)
+               return;
        if (blstate == NULL)
                pfilter_init();
        if (blstate == NULL)



Home | Main Index | Thread Index | Old Index