From 3ba1e879fb3565a4ffdcba6866e8abdcbefe8876 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 22 Nov 2010 13:31:38 +0000 Subject: [PATCH] more core_api checks --- src/core/core_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/core_api.c b/src/core/core_api.c index 02c9e43a2..f687cd265 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -771,7 +771,7 @@ trigger_next_request (struct GNUNET_CORE_Handle *h, } if (h->pending_head != NULL) msize = ntohs (((struct GNUNET_MessageHeader*) &h->pending_head[1])->size); - else if (h->ready_peer_head != NULL) + else if ((h->ready_peer_head != NULL) && (h->ready_peer_head->pending_head != NULL)) /* FIXME: h->ready_peer_head->pending_head check necessary? */ msize = h->ready_peer_head->pending_head->msize + sizeof (struct SendMessage); else { @@ -1137,7 +1137,6 @@ main_notify_handler (void *cls, if (pr->pending_head == NULL) { GNUNET_break (0); - reconnect_later (h); return; } -- 2.25.1