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 655c30efa3b35da9ecb12d4f75974f7990d35854..37e35e1677897ff03c649a466e2394e829a7987d 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)