From: Sree Harsha Totakura Date: Mon, 1 Apr 2013 18:27:35 +0000 (+0000) Subject: - fix 2851 X-Git-Tag: initial-import-from-subversion-38251~9409 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eae47ba86a28df58f9449bf9d0917592ed1eed34;p=oweals%2Fgnunet.git - fix 2851 --- diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 0e96398de..8c4192f79 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c @@ -360,16 +360,15 @@ trigger_next_request (struct GNUNET_ARM_Handle *h, int ignore_currently_down) LOG (GNUNET_ERROR_TYPE_DEBUG, "Request pending, not processing queue\n"); return; } - if (NULL != h->control_pending_head) - msize = - ntohs (((struct GNUNET_MessageHeader *) &h-> - control_pending_head[1])->size); - else if (GNUNET_NO == ignore_currently_down) + if (NULL == h->control_pending_head) { LOG (GNUNET_ERROR_TYPE_DEBUG, "Request queue empty, not processing queue\n"); return; /* no pending message */ } + msize = + ntohs (((struct GNUNET_MessageHeader *) &h-> + control_pending_head[1])->size); h->cth = GNUNET_CLIENT_notify_transmit_ready (h->client, msize, GNUNET_TIME_UNIT_FOREVER_REL,