mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
Fix a memory leak with client certificates.
This commit is contained in:
parent
dbcd150bce
commit
b2d64e51f0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
return 1;
|
||||
}
|
||||
X509_free(cert);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue