From 4f1a0b2c21bd31310438567afa303baf826a670b Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 4 Apr 2007 15:31:17 +0000 Subject: [PATCH] Handle bad content type. Coverity ID 99. --- crypto/pkcs7/pk7_doit.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.25.1