diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-09-08 16:25:55 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-09-08 16:25:55 +0000 |
commit | 12a296edfcd8185413530d8f2cd66c7150ce251f (patch) | |
tree | 442bbbf24425d23a60ec897b497e629910138c98 /crypto/pkcs7 | |
parent | e696a05791d0473b2f7a4491f44505ea83a46707 (diff) |
Really fix PKCS7_set_detached this time...
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/pk7_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs7/pk7_lib.c b/crypto/pkcs7/pk7_lib.c index 612cbd8c68..985b07245c 100644 --- a/crypto/pkcs7/pk7_lib.c +++ b/crypto/pkcs7/pk7_lib.c @@ -74,7 +74,7 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg) if (nid == NID_pkcs7_signed) { 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; os=p7->d.sign->contents->d.data; |