[openssl-commits] [openssl] OpenSSL_1_0_0-stable update
Rich Salz
rsalz at openssl.org
Tue May 19 11:21:05 UTC 2015
The branch OpenSSL_1_0_0-stable has been updated
via 2dff75f4dff0199719eca03e01b6ef23d91ceebc (commit)
from 690d040b2e9df9c6ac19e1aab8f0cd79a84a2ee4 (commit)
- Log -----------------------------------------------------------------
commit 2dff75f4dff0199719eca03e01b6ef23d91ceebc
Author: Robert Swiecki <robert at swiecki.net>
Date: Mon May 18 19:08:02 2015 -0400
Don't add write errors into bytecounts
Signed-off-by: Rich Salz <rsalz at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(cherry picked from commit 00d565cfbe90fab3b157e644caca4eb4a2ebec79)
-----------------------------------------------------------------------
Summary of changes:
apps/s_server.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/s_server.c b/apps/s_server.c
index 3ca8f89..0f527ec 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -2037,8 +2037,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;
}
More information about the openssl-commits
mailing list