If we've authenticated, we are already in the child and we don't need the

socket anymore.
XXX: pullup-7, pullup-8
This commit is contained in:
christos 2017-06-26 17:10:39 +00:00
parent 44c2442df2
commit fc0e1a5a51
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ pfilter_notify(int a)
// 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