提交 cc069067 编写于 作者: M Matt Caswell

Fix an uninitialised read on an error path

Found by Coverity.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 5105ba5b
...@@ -257,7 +257,7 @@ static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts, ...@@ -257,7 +257,7 @@ static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts,
*/ */
os.length = ASN1_object_size(0, len, V_ASN1_OCTET_STRING); os.length = ASN1_object_size(0, len, V_ASN1_OCTET_STRING);
if (os.length < 0) if (os.length < 0)
goto err; return 0;
os.data = OPENSSL_malloc(os.length); os.data = OPENSSL_malloc(os.length);
if (os.data == NULL) if (os.data == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册