libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit f072ba22292b3a0ccece062debeef05f4c9a5d62
parent 4e416de4c5ff7c87fa34d3f68764fad65f45a62b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 29 Oct 2020 15:53:27 +0300

new_connection_prepare_(): fixed use-after-free in error handler

Diffstat:
Msrc/microhttpd/daemon.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2529,7 +2529,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon, free (connection->addr); free (connection); #ifdef HAVE_MESSAGES - MHD_DLOG (connection->daemon, + MHD_DLOG (daemon, _ ("Failed to initialise TLS session.\n")); #endif #if EPROTO @@ -2556,7 +2556,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon, break; default: #ifdef HAVE_MESSAGES - MHD_DLOG (connection->daemon, + MHD_DLOG (daemon, _ ( "Failed to setup TLS credentials: unknown credential type %d.\n"), daemon->cred_type);