summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/authfd.c b/authfd.c
index 662350cef..9ce5b5ea8 100644
--- a/authfd.c
+++ b/authfd.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#include "includes.h" 37#include "includes.h"
38RCSID("$OpenBSD: authfd.c,v 1.64 2004/08/11 21:44:31 avsm Exp $"); 38RCSID("$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 }