Fix to the -revoke option in ca. It was leaking memory, crashing and just
[openssl.git] / crypto / asn1 / a_strnid.c
index cb37024..e2e100e 100644 (file)
@@ -188,6 +188,7 @@ void ASN1_STRING_TABLE_cleanup(void)
 {
        STACK_OF(ASN1_STRING_TABLE) *tmp;
        tmp = stable;
+       if(!tmp) return;
        stable = NULL;
        sk_ASN1_STRING_TABLE_pop_free(tmp, st_free);
 }