gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 04/254: openssl: fix memory leak in servercert


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 04/254: openssl: fix memory leak in servercert
Date: Sat, 17 Jun 2017 16:50:36 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit da2af5c04dee9d0e16c02b468494f386ac69e837
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Apr 20 15:46:03 2017 +0200

    openssl: fix memory leak in servercert
    
    ... when failing to get the server certificate.
---
 lib/vtls/openssl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 58a014a4d..52ebe671a 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2819,6 +2819,7 @@ static CURLcode servercert(struct connectdata *conn,
 
   connssl->server_cert = SSL_get_peer_certificate(connssl->handle);
   if(!connssl->server_cert) {
+    BIO_free(mem);
     if(!strict)
       return CURLE_OK;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]