When we don't listen for the clients, num_listen_socks is -1
This commit is contained in:
parent
6da7f4d0ed
commit
b165161da2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user