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/9e4b599fbecb
branches:  trunk
changeset: 825013:9e4b599fbecb
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 7822daa66da8 -r 9e4b599fbecb 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