gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: fix memory leak with


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: fix memory leak with TLS if daemon startup fails as reported by Nicolas Mora on the list
Date: Fri, 11 Jan 2019 21:17:44 +0100

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

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 302d3811 fix memory leak with TLS if daemon startup fails as reported 
by Nicolas Mora on the list
302d3811 is described below

commit 302d381133a26e6223766eea094a784993022fc4
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 11 21:17:31 2019 +0100

    fix memory leak with TLS if daemon startup fails as reported by Nicolas 
Mora on the list
---
 src/microhttpd/daemon.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 4fc5b1b6..ab75273b 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -6375,7 +6375,13 @@ thread_failed:
 #endif
 #ifdef HTTPS_SUPPORT
   if (0 != (*pflags & MHD_USE_TLS))
+  {
     gnutls_priority_deinit (daemon->priority_cache);
+    if (daemon->x509_cred)
+      gnutls_certificate_free_credentials (daemon->x509_cred);
+    if (daemon->psk_cred)
+      gnutls_psk_free_server_credentials (daemon->psk_cred);
+  }
 #endif /* HTTPS_SUPPORT */
   if (MHD_ITC_IS_VALID_(daemon->itc))
     MHD_itc_destroy_chk_ (daemon->itc);

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



reply via email to

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