mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Subject: ssl: fix x509 memory leaks
Signed-off-by: Petar Paradzik <petar.paradzik@sartura.hr>
This commit is contained in:
parent
00ffebfd24
commit
939436b793
1 changed files with 5 additions and 1 deletions
|
@ -600,5 +600,9 @@ lws_tls_peer_cert_info(struct lws *wsi, enum lws_tls_cert_info type,
|
|||
{
|
||||
X509 *x509 = SSL_get_peer_certificate(wsi->ssl);
|
||||
|
||||
return lws_tls_openssl_cert_info(x509, type, buf, len);
|
||||
int rc = lws_tls_openssl_cert_info(x509, type, buf, len);
|
||||
|
||||
X509_free(x509);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue