From: Christian Grothoff Date: Fri, 21 Jun 2013 17:29:49 +0000 (+0000) Subject: -fix use after free in log X-Git-Tag: initial-import-from-subversion-38251~8703 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63e09887abf299ed62ea77fdd28d9c661a98ab1f;p=oweals%2Fgnunet.git -fix use after free in log --- 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,