projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
051b41d
)
Don't add write errors into bytecounts
author
Robert Swiecki
<robert@swiecki.net>
Mon, 18 May 2015 23:08:02 +0000
(19:08 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 19 May 2015 11:20:18 +0000
(07:20 -0400)
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit
00d565cfbe90fab3b157e644caca4eb4a2ebec79
)
apps/s_server.c
patch
|
blob
|
history
diff --git
a/apps/s_server.c
b/apps/s_server.c
index 5d58fe0bdf82f5278da8022e02f6b7802e80f1dc..e66272096c2f0539910a1b2ac352c9b8ba4e822d 100644
(file)
--- a/
apps/s_server.c
+++ b/
apps/s_server.c
@@
-2455,8
+2455,10
@@
static int sv_body(char *hostname, int s, int stype, unsigned char *context)
ret = 1;
goto err;
}
- l += k;
- i -= k;
+ if (k > 0) {
+ l += k;
+ i -= k;
+ }
if (i <= 0)
break;
}