- fix 2851
authorSree Harsha Totakura <totakura@in.tum.de>
Mon, 1 Apr 2013 18:27:35 +0000 (18:27 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Mon, 1 Apr 2013 18:27:35 +0000 (18:27 +0000)
src/arm/arm_api.c

index 0e96398dec38f3d01915ca9ae639230e80cfdb07..8c4192f79384b2f55548cfdc4c4fd291e4e01aad 100644 (file)
@@ -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,