diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-21 17:29:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-21 17:29:49 +0000 |
commit | 63e09887abf299ed62ea77fdd28d9c661a98ab1f (patch) | |
tree | 2a2926fc2bb8b9e4a15d6bb0903541292d0d6d14 /src/transport/transport_api.c | |
parent | 052aea24515d4b7b63afacb9e2170dd67523500e (diff) | |
download | gnunet-63e09887abf299ed62ea77fdd28d9c661a98ab1f.tar.gz gnunet-63e09887abf299ed62ea77fdd28d9c661a98ab1f.zip |
-fix use after free in log
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1054 | if (NULL != tch->cb) | 1054 | if (NULL != tch->cb) |
1055 | tch->cb (tch->cb_cls, GNUNET_SYSERR); | 1055 | tch->cb (tch->cb_cls, GNUNET_SYSERR); |
1056 | GNUNET_CONTAINER_DLL_remove (tch->th->tc_head, tch->th->tc_tail, tch); | 1056 | GNUNET_CONTAINER_DLL_remove (tch->th->tc_head, tch->th->tc_tail, tch); |
1057 | GNUNET_free (tch); | ||
1058 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1057 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1059 | "Discarding `%s' request to `%4s' due to error in transport service connection.\n", "REQUEST_CONNECT", | 1058 | "Discarding `%s' request to `%4s' due to error in transport service connection.\n", "REQUEST_CONNECT", |
1060 | GNUNET_i2s (&tch->pid)); | 1059 | GNUNET_i2s (&tch->pid)); |
1060 | GNUNET_free (tch); | ||
1061 | return 0; | 1061 | return 0; |
1062 | } | 1062 | } |
1063 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1063 | LOG (GNUNET_ERROR_TYPE_DEBUG, |