From 91b1f99f4895d30610cdea491f6410e7d692c6b5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 23 Dec 2010 15:35:59 +0000 Subject: [PATCH] fixing use-after-free --- src/core/core_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/core_api.c b/src/core/core_api.c index c3d7fd798..1ececcb64 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -544,6 +544,8 @@ request_next_transmission (struct PeerRecord *pr) trigger_next_request (h, GNUNET_NO); return; } + if (th->cm != NULL) + return; /* already done */ GNUNET_assert (pr->prev == NULL); GNUNET_assert (pr->next == NULL); pr->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining (th->timeout), -- 2.25.1