Handle bad content type. Coverity ID 99.
authorBen Laurie <ben@openssl.org>
Wed, 4 Apr 2007 15:31:17 +0000 (15:31 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 4 Apr 2007 15:31:17 +0000 (15:31 +0000)
crypto/pkcs7/pk7_doit.c

index 655c30e..37e35e1 100644 (file)
@@ -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)