diff options
author | Ben Laurie <ben@openssl.org> | 2007-04-04 15:31:17 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2007-04-04 15:31:17 +0000 |
commit | 4f1a0b2c21bd31310438567afa303baf826a670b (patch) | |
tree | 634a9441c670b2fc913824a08b8ce9306a98b526 | |
parent | 260c497cdd8e017699f46e6f9a182ddcaaf6e345 (diff) |
Handle bad content type. Coverity ID 99.
-rw-r--r-- | crypto/pkcs7/pk7_doit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 655c30efa3..37e35e1677 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -763,6 +763,9 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) } break; + default: + PKCS7err(PKCS7_F_PKCS7_DATAFINAL,PKCS7_R_UNSUPPORTED_CONTENT_TYPE); + goto err; } if (si_sk != NULL) |