Fix to the -revoke option in ca. It was leaking memory, crashing and just
[openssl.git] / crypto / asn1 / a_strnid.c
index cb37024db22902edc19d56291c30d94230eca099..e2e100e2eb8846d52161f94c2fcd2b0f5b977c2d 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);
 }