[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Rich Salz rsalz at openssl.org
Tue May 19 11:20:23 UTC 2015


The branch OpenSSL_1_0_2-stable has been updated
       via  cdcb94eea7533da2d67e0fc8d393829a2498f1ad (commit)
      from  051b41df4105355a5a9c7f1c0bd00cc70b2d324c (commit)


- Log -----------------------------------------------------------------
commit cdcb94eea7533da2d67e0fc8d393829a2498f1ad
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 5d58fe0..e662720 100644
--- 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;
             }


More information about the openssl-commits mailing list