提交 f1254300 编写于 作者: J Jon Spillett 提交者: Rich Salz

Exit the loop on failure

Reviewed-by: NRichard Levitte <levitte@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2805)
上级 b35fb005
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册