[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Thu Mar 9 14:33:31 UTC 2017


The branch master has been updated
       via  f125430063dd81efe098c99542b02b2a918adc1d (commit)
      from  b35fb005bdf55470a5fd705379837bdfb69a1811 (commit)


- Log -----------------------------------------------------------------
commit f125430063dd81efe098c99542b02b2a918adc1d
Author: Jon Spillett <jon.spillett at oracle.com>
Date:   Wed Mar 1 14:22:21 2017 +1000

    Exit the loop on failure
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2805)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/bio_asn1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/asn1/bio_asn1.c b/crypto/asn1/bio_asn1.c
index 3d3f8e4..31fd725 100644
--- a/crypto/asn1/bio_asn1.c
+++ b/crypto/asn1/bio_asn1.c
@@ -212,7 +212,7 @@ static int asn1_bio_write(BIO *b, const char *in, int inl)
                 wrmax = inl;
             ret = BIO_write(next, in, wrmax);
             if (ret <= 0)
-                break;
+                goto done;
             wrlen += ret;
             ctx->copylen -= ret;
             in += ret;


More information about the openssl-commits mailing list