More exactitude with function arguments.
[openssl.git] / ssl / ssl_cert.c
index 1bff91eaa8d2f89063ad06baeb57d3b83dd6877d..7d4531d808ec6ad7f32d38d61f58d9b9706f2326 100644 (file)
@@ -105,6 +105,9 @@ CERT *c;
        {
        int i;
 
+       if(c == NULL)
+           return;
+
        i=CRYPTO_add(&c->references,-1,CRYPTO_LOCK_SSL_CERT);
 #ifdef REF_PRINT
        REF_PRINT("CERT",c);