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:
2df0ba9
)
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:38 +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 648dc6ab0aaa9548c222e1764491d11c97f8537a..093a80d583e5b43a92789ec59e9f8da7d537a22a 100644
(file)
--- a/
apps/s_server.c
+++ b/
apps/s_server.c
@@
-2251,8
+2251,10
@@
static int sv_body(char *hostname, int s, unsigned char *context)
ret = 1;
goto err;
}
- l += k;
- i -= k;
+ if (k > 0) {
+ l += k;
+ i -= k;
+ }
if (i <= 0)
break;
}