From 6ecd598ec079ebd184ab1e1e594b849e65c08507 Mon Sep 17 00:00:00 2001 From: Quora Dodrill Date: Wed, 14 Aug 2013 09:49:04 -0700 Subject: [PATCH] libratbox/openssl: Fix possible memory leak with SSL dertificate fingerprints --- libratbox/src/openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index f00d14ad..693a49d5 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -644,6 +644,7 @@ rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN]) res == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) { memcpy(certfp, cert->sha1_hash, RB_SSL_CERTFP_LEN); + X509_free(cert); return 1; } X509_free(cert);