summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/ssh/atomicio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/atomicio.c b/usr.bin/ssh/atomicio.c
index 019eda813cf..98edfa67d09 100644
--- a/usr.bin/ssh/atomicio.c
+++ b/usr.bin/ssh/atomicio.c
@@ -24,7 +24,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: atomicio.c,v 1.5 2000/09/07 20:27:49 deraadt Exp $");
+RCSID("$OpenBSD: atomicio.c,v 1.6 2000/10/17 20:28:10 markus Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -49,7 +49,7 @@ atomicio(f, fd, _s, n)
if (errno == EINTR || errno == EAGAIN)
continue;
case 0:
- return (res);
+ return (pos);
default:
pos += res;
}