diff options
author | Jon Spillett <jon.spillett@oracle.com> | 2017-03-01 14:22:21 +1000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-03-09 09:26:13 -0500 |
commit | f125430063dd81efe098c99542b02b2a918adc1d (patch) | |
tree | 25de99849d70a547d2da00f0d88c27759fc0e480 /crypto/asn1/bio_asn1.c | |
parent | b35fb005bdf55470a5fd705379837bdfb69a1811 (diff) |
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 'crypto/asn1/bio_asn1.c')
-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; |