diff options
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: authfd.c,v 1.64 2004/08/11 21:44:31 avsm Exp $"); | 38 | RCSID("$OpenBSD: authfd.c,v 1.65 2005/05/24 17:32:43 avsm Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -149,8 +149,7 @@ ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply | |||
149 | l = len; | 149 | l = len; |
150 | if (l > sizeof(buf)) | 150 | if (l > sizeof(buf)) |
151 | l = sizeof(buf); | 151 | l = sizeof(buf); |
152 | l = atomicio(read, auth->fd, buf, l); | 152 | if (atomicio(read, auth->fd, buf, l) != l) { |
153 | if (l <= 0) { | ||
154 | error("Error reading response from authentication socket."); | 153 | error("Error reading response from authentication socket."); |
155 | return 0; | 154 | return 0; |
156 | } | 155 | } |