gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Do not deinit GnuTLS if it wasn't


From: gnunet
Subject: [libmicrohttpd] branch master updated: Do not deinit GnuTLS if it wasn't inited. Fix for 13fe456581693421459100d60a7a0f93e05ce533
Date: Thu, 22 Oct 2020 16:33:42 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new a9be6220 Do not deinit GnuTLS if it wasn't inited. Fix for 
13fe456581693421459100d60a7a0f93e05ce533
a9be6220 is described below

commit a9be6220074d78f4e97dcd999755e0278e261c62
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 22 17:26:00 2020 +0300

    Do not deinit GnuTLS if it wasn't inited.
    Fix for 13fe456581693421459100d60a7a0f93e05ce533
---
 src/microhttpd/daemon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 98b93ae5..fde43df7 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2539,7 +2539,8 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
         (GNUTLS_E_SUCCESS != gnutls_priority_set (connection->tls_session,
                                                   daemon->priority_cache)))
     {
-      gnutls_deinit (connection->tls_session);
+      if (NULL != connection->tls_session)
+        gnutls_deinit (connection->tls_session);
       MHD_socket_close_chk_ (client_socket);
       MHD_ip_limit_del (daemon,
                         addr,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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