diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2021-11-17 21:06:40 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2021-11-17 21:06:40 +0000 |
commit | c298c050bef4d7b9e876718ae298372db53e7980 (patch) | |
tree | 2cf861d5d30eb01d40c4aba4a85e3dc126b3a4e2 /usr.bin/ssh | |
parent | 5a08e63c481796d71cd9db77f29c4619baae2c11 (diff) |
set num_listen_socks to 0 on close-all instead of -1, which
interferes with the new poll()-based listen loop; spotted and
debugged by anton@+deraadt@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 78f5d647f60..4fb6a0f31ea 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.579 2021/11/14 18:47:43 deraadt Exp $ */ +/* $OpenBSD: sshd.c,v 1.580 2021/11/17 21:06:39 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -251,7 +251,7 @@ close_listen_socks(void) for (i = 0; i < num_listen_socks; i++) close(listen_socks[i]); - num_listen_socks = -1; + num_listen_socks = 0; } static void |