diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-11-18 03:31:44 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-11-18 14:32:54 +1100 |
commit | 875408270c5a7dd69ed5449e5d85bd7120c88f70 (patch) | |
tree | fff5263529b40a4799260135b1c06197d22e1771 /ssh-keyscan.c | |
parent | 36b5e37030d35bbaa18ba56825b1af55971d18a0 (diff) |
upstream: check for POLLHUP wherever we check for POLLIN
OpenBSD-Commit-ID: 6aa6f3ec6b17c3bd9bfec672a917f003a76d93e5
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index b0c530f3..ccd21258 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keyscan.c,v 1.142 2021/11/12 05:23:49 deraadt Exp $ */ +/* $OpenBSD: ssh-keyscan.c,v 1.143 2021/11/18 03:31:44 djm Exp $ */ /* * Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. * @@ -597,7 +597,7 @@ conloop(void) for (i = 0; i < maxfd; i++) { if (read_wait[i].revents & (POLLHUP|POLLERR|POLLNVAL)) confree(i); - else if (read_wait[i].revents & POLLIN) + else if (read_wait[i].revents & (POLLIN|POLLHUP)) conread(i); } |