if (php_openssl_matches_wildcard_name(subject_name, (const char *)cert_name)) {
OPENSSL_free(cert_name);
+ sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
+
return 1;
}
OPENSSL_free(cert_name);
san->d.iPAddress->data[3]
);
if (strcasecmp(subject_name, (const char*)ipbuffer) == 0) {
+ sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
+
return 1;
}
}
}
}
+ sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
+
return 0;
}
/* }}} */