From b165161da2a59b212c45783ac65acaf1abc2e38e Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 26 Jul 2016 15:14:46 +0200 Subject: [PATCH] When we don't listen for the clients, num_listen_socks is -1 --- openssh-7.2p1-audit.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh-7.2p1-audit.patch b/openssh-7.2p1-audit.patch index cdbbd7f..081671d 100644 --- a/openssh-7.2p1-audit.patch +++ b/openssh-7.2p1-audit.patch @@ -2029,7 +2029,7 @@ diff -up openssh-7.3p1/sshd.c.audit openssh-7.3p1/sshd.c + */ +int listening_for_clients(void) +{ -+ return num_listen_socks > 0; ++ return num_listen_socks >= 0; +} + static void