提交 48921e00 编写于 作者: D Dr. Stephen Henson

Really fix PKCS7_set_detached this time...
上级 f8049301
...@@ -74,7 +74,7 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg) ...@@ -74,7 +74,7 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg)
if (nid == NID_pkcs7_signed) if (nid == NID_pkcs7_signed)
{ {
ret=p7->detached=(int)larg; ret=p7->detached=(int)larg;
if (PKCS7_type_is_data(p7->d.sign->contents)) if (ret && PKCS7_type_is_data(p7->d.sign->contents))
{ {
ASN1_OCTET_STRING *os; ASN1_OCTET_STRING *os;
os=p7->d.sign->contents->d.data; os=p7->d.sign->contents->d.data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册