From 8b2e3426bf1b5ddfd54ce7a123dd17159247472a Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 22 Nov 2010 12:29:21 +0000 Subject: [PATCH] checking if pending_head is NULL, may not be correct --- src/core/core_api.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/core_api.c b/src/core/core_api.c index 48de0a214..02c9e43a2 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -666,6 +666,12 @@ transmit_message (void *cls, /* now check for 'ready' P2P messages */ if (NULL != (pr = h->ready_peer_head)) { + /* FIXME: If a reconnect_later call happened, this can be NULL! */ + if (pr->pending_head == NULL) + { + GNUNET_break(0); + return 0; + } th = pr->pending_head; if (size < th->msize + sizeof (struct SendMessage)) { -- 2.25.1