diff options
-rw-r--r-- | ssh-agent.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 2a4578b03..68de56ce6 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-agent.c,v 1.228 2018/02/23 15:58:37 markus Exp $ */ | 1 | /* $OpenBSD: ssh-agent.c,v 1.229 2018/04/09 23:54:49 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -909,9 +909,8 @@ after_poll(struct pollfd *pfd, size_t npfd) | |||
909 | /* Process events */ | 909 | /* Process events */ |
910 | switch (sockets[socknum].type) { | 910 | switch (sockets[socknum].type) { |
911 | case AUTH_SOCKET: | 911 | case AUTH_SOCKET: |
912 | if ((pfd[i].revents & (POLLIN|POLLERR)) != 0 && | 912 | if ((pfd[i].revents & (POLLIN|POLLERR)) != 0) |
913 | handle_socket_read(socknum) != 0) | 913 | handle_socket_read(socknum); |
914 | close_socket(&sockets[socknum]); | ||
915 | break; | 914 | break; |
916 | case AUTH_CONNECTION: | 915 | case AUTH_CONNECTION: |
917 | if ((pfd[i].revents & (POLLIN|POLLERR)) != 0 && | 916 | if ((pfd[i].revents & (POLLIN|POLLERR)) != 0 && |