mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 04:53:52 +08:00
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)
This commit is contained in:
parent
b35fb005bd
commit
f125430063
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user