diff options
author | Jon Spillett <jon.spillett@oracle.com> | 2017-03-01 05:22:21 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-03-09 15:26:13 +0100 |
commit | f125430063dd81efe098c99542b02b2a918adc1d (patch) | |
tree | 25de99849d70a547d2da00f0d88c27759fc0e480 /crypto/asn1/bio_asn1.c | |
parent | Add some TLS13 values to s_client/s_server (diff) | |
download | openssl-f125430063dd81efe098c99542b02b2a918adc1d.tar.xz openssl-f125430063dd81efe098c99542b02b2a918adc1d.zip |
Exit the loop on failure
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2805)
Diffstat (limited to '')
-rw-r--r-- | crypto/asn1/bio_asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/bio_asn1.c b/crypto/asn1/bio_asn1.c index 3d3f8e4c1e..31fd7258a9 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; |