OpenSSL: Fix memory leak in OCSP parsing
The result from OCSP_cert_to_id() needs to be freed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
29bc76e3d3
commit
d9a0f69747
2 changed files with 4 additions and 0 deletions
|
@ -3852,10 +3852,12 @@ static int ocsp_resp_cb(SSL *s, void *arg)
|
|||
wpa_printf(MSG_INFO, "OpenSSL: Could not find current server certificate from OCSP response%s",
|
||||
(conn->flags & TLS_CONN_REQUIRE_OCSP) ? "" :
|
||||
" (OCSP not required)");
|
||||
OCSP_CERTID_free(id);
|
||||
OCSP_BASICRESP_free(basic);
|
||||
OCSP_RESPONSE_free(rsp);
|
||||
return (conn->flags & TLS_CONN_REQUIRE_OCSP) ? 0 : 1;
|
||||
}
|
||||
OCSP_CERTID_free(id);
|
||||
|
||||
if (!OCSP_check_validity(this_update, next_update, 5 * 60, -1)) {
|
||||
tls_show_errors(MSG_INFO, __func__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue