When we don't listen for the clients, num_listen_socks is -1

This commit is contained in:
Jakub Jelen 2016-07-26 15:14:46 +02:00
parent 6da7f4d0ed
commit b165161da2

View File

@ -2029,7 +2029,7 @@ diff -up openssh-7.3p1/sshd.c.audit openssh-7.3p1/sshd.c
+ */ + */
+int listening_for_clients(void) +int listening_for_clients(void)
+{ +{
+ return num_listen_socks > 0; + return num_listen_socks >= 0;
+} +}
+ +
static void static void