From 63e09887abf299ed62ea77fdd28d9c661a98ab1f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Jun 2013 17:29:49 +0000 Subject: [PATCH] -fix use after free in log --- src/transport/transport_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index ac37274c6..f92895c52 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -1054,10 +1054,10 @@ send_try_connect (void *cls, size_t size, void *buf) if (NULL != tch->cb) tch->cb (tch->cb_cls, GNUNET_SYSERR); GNUNET_CONTAINER_DLL_remove (tch->th->tc_head, tch->th->tc_tail, tch); - GNUNET_free (tch); LOG (GNUNET_ERROR_TYPE_DEBUG, "Discarding `%s' request to `%4s' due to error in transport service connection.\n", "REQUEST_CONNECT", GNUNET_i2s (&tch->pid)); + GNUNET_free (tch); return 0; } LOG (GNUNET_ERROR_TYPE_DEBUG, -- 2.25.1