Fix a memory leak with client certificates.
This commit is contained in:
parent
ba29286a4a
commit
6af7e4faa6
|
@ -633,6 +633,7 @@ rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN])
|
||||||
memcpy(certfp, cert->sha1_hash, RB_SSL_CERTFP_LEN);
|
memcpy(certfp, cert->sha1_hash, RB_SSL_CERTFP_LEN);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
X509_free(cert);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue