Really fix PKCS7_set_detached this time...

This commit is contained in:
Dr. Stephen Henson 2002-09-08 16:25:03 +00:00
parent f804930150
commit 48921e00fc

View File

@ -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;