From: djm Date: Fri, 18 Oct 2024 04:14:59 +0000 (+0000) Subject: unreachable POLLERR case; from ya0guang via GHPR485 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e34b69e8c04ec474d3591502cfc1c0d6607a35d6;p=openbsd unreachable POLLERR case; from ya0guang via GHPR485 --- diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c index 76e8c12ae4f..09962b4cfcf 100644 --- a/usr.bin/ssh/ssh-keyscan.c +++ b/usr.bin/ssh/ssh-keyscan.c @@ -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 . * @@ -562,7 +562,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); }