]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: unreachable POLLERR case; from ya0guang via GHPR485
authordjm@openbsd.org <djm@openbsd.org>
Fri, 18 Oct 2024 04:14:59 +0000 (04:14 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 18 Oct 2024 04:15:27 +0000 (15:15 +1100)
OpenBSD-Commit-ID: b3c82655190532b01eb817e532742cfaa4687eff

ssh-keyscan.c

index 254e91783e188fb7d0d9b9302c127d7c594be916..941fa512254f170726d432319c9f8f3a545cd51a 100644 (file)
@@ -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 <dm@lcs.mit.edu>.
  *
@@ -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);
        }