diff --git a/crypto/external/bsd/openssh/dist/pfilter.c b/crypto/external/bsd/openssh/dist/pfilter.c index bd1ebb17641d..1bb0cfac67d7 100644 --- a/crypto/external/bsd/openssh/dist/pfilter.c +++ b/crypto/external/bsd/openssh/dist/pfilter.c @@ -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