=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keyscan.c,v retrieving revision 1.142 retrieving revision 1.143 diff -u -r1.142 -r1.143 --- src/usr.bin/ssh/ssh-keyscan.c 2021/11/12 05:23:49 1.142 +++ src/usr.bin/ssh/ssh-keyscan.c 2021/11/18 03:31:44 1.143 @@ -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 . * @@ -579,7 +579,7 @@ 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); }