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 If we've authenticated, we ...



details:   https://anonhg.NetBSD.org/src/rev/cd5a5ee9f9d7
branches:  trunk
changeset: 354712:cd5a5ee9f9d7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 26 17:10:39 2017 +0000

description:
If we've authenticated, we are already in the child and we don't need the
socket anymore.
XXX: pullup-7, pullup-8

diffstat:

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

diffs (14 lines):

diff -r 039a1d9feff0 -r cd5a5ee9f9d7 crypto/external/bsd/openssh/dist/pfilter.c
--- a/crypto/external/bsd/openssh/dist/pfilter.c        Mon Jun 26 12:17:09 2017 +0000
+++ b/crypto/external/bsd/openssh/dist/pfilter.c        Mon Jun 26 17:10:39 2017 +0000
@@ -30,6 +30,10 @@
        // XXX: 3?
        fd = packet_connection_is_on_socket() ? packet_get_connection_in() : 3;
        (void)blacklist_r(blstate, a, fd, "ssh");
+       if (a == 0) {
+               blacklist_close(blstate);
+               blstate = NULL;
+       }
 #else
        __USE(a);
 #endif



Home | Main Index | Thread Index | Old Index