提交 c91ec013 编写于 作者: B Benjamin Kaduk 提交者: Benjamin Kaduk

Fix return-value checks in OCSP_resp_get1_id()

Commit db17e43d added the function
but would improperly report success if the underlying dup operation
failed.
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3775)
上级 0ffdaebf
......@@ -230,7 +230,7 @@ int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
} else {
return 0;
}
if (pname == NULL && pid == NULL)
if (*pname == NULL && *pid == NULL)
return 0;
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册