aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-10-22 16:52:15 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-10-22 17:02:26 +0300
commit53fec1c213590314369868abc2768f155f6f6938 (patch)
tree98deda2a13b963e488f0e5a9dc778a2758ab44cf
parentdd9aadce4ccb6517fac420b241e19834bec84174 (diff)
downloadlibmicrohttpd-53fec1c213590314369868abc2768f155f6f6938.tar.gz
libmicrohttpd-53fec1c213590314369868abc2768f155f6f6938.zip
daemon.c: fixed leaked on error GnuTLS resource
-rw-r--r--src/microhttpd/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b18885f0..ed4cd5ca 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2563,6 +2563,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
2563 "Failed to setup TLS credentials: unknown credential type %d.\n"), 2563 "Failed to setup TLS credentials: unknown credential type %d.\n"),
2564 daemon->cred_type); 2564 daemon->cred_type);
2565#endif 2565#endif
2566 gnutls_deinit (connection->tls_session);
2566 MHD_socket_close_chk_ (client_socket); 2567 MHD_socket_close_chk_ (client_socket);
2567 MHD_ip_limit_del (daemon, 2568 MHD_ip_limit_del (daemon,
2568 addr, 2569 addr,