diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-09-08 16:25:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-09-08 16:25:03 +0000 |
commit | 48921e00fc69060b7b29bab707ebc255a3506aff (patch) | |
tree | b586f331f7927eaa3a6bb968b9ac8d7daad60f9f /crypto/pkcs7 | |
parent | f8049301509dc1ee13d1b3e4c0d19ad3d84013d5 (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 d4804f8837..9b647b2121 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; |