Skip to content

Commit

Permalink
upstream: unreachable POLLERR case; from ya0guang via GHPR485
Browse files Browse the repository at this point in the history
OpenBSD-Commit-ID: b3c82655190532b01eb817e532742cfaa4687eff
  • Loading branch information
djmdjm committed Oct 18, 2024
1 parent d76424b commit a9d6d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh-keyscan.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: ssh-keyscan.c,v 1.162 2024/09/20 02:00:46 jsg Exp $ */
/* $OpenBSD: ssh-keyscan.c,v 1.163 2024/10/18 04:14:59 djm Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <[email protected]>.
*
Expand Down Expand Up @@ -588,7 +588,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|POLLHUP))
else if (read_wait[i].revents & (POLLIN))
conread(i);
}

Expand Down

0 comments on commit a9d6d7d

Please sign in to comment.