summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/authfd.c b/authfd.c
index 8613b9a52..3e1ef8182 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.38 2001/03/06 00:33:03 deraadt Exp $"); 38RCSID("$OpenBSD: authfd.c,v 1.39 2001/04/05 10:42:48 markus Exp $");
39 39
40#include <openssl/evp.h> 40#include <openssl/evp.h>
41 41
@@ -121,7 +121,7 @@ ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply
121 while (len > 0) { 121 while (len > 0) {
122 l = read(auth->fd, buf + 4 - len, len); 122 l = read(auth->fd, buf + 4 - len, len);
123 if (l == -1 && (errno == EAGAIN || errno == EINTR)) 123 if (l == -1 && (errno == EAGAIN || errno == EINTR))
124 continue; 124 continue;
125 if (l <= 0) { 125 if (l <= 0) {
126 error("Error reading response length from authentication socket."); 126 error("Error reading response length from authentication socket.");
127 return 0; 127 return 0;
@@ -142,7 +142,7 @@ ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply
142 l = sizeof(buf); 142 l = sizeof(buf);
143 l = read(auth->fd, buf, l); 143 l = read(auth->fd, buf, l);
144 if (l == -1 && (errno == EAGAIN || errno == EINTR)) 144 if (l == -1 && (errno == EAGAIN || errno == EINTR))
145 continue; 145 continue;
146 if (l <= 0) { 146 if (l <= 0) {
147 error("Error reading response from authentication socket."); 147 error("Error reading response from authentication socket.");
148 return 0; 148 return 0;