[openssl-commits] [openssl] OpenSSL_1_0_1-stable update

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


The branch OpenSSL_1_0_1-stable has been updated
       via  e96de9822eea06f43d4104fc2d055d7895b08834 (commit)
      from  2df0ba9b4f20f07f7d5bead4d2107d29d62b1798 (commit)


- Log -----------------------------------------------------------------
commit e96de9822eea06f43d4104fc2d055d7895b08834
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 648dc6a..093a80d 100644
--- 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;
             }


More information about the openssl-commits mailing list