fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 13 Oct 2011 19:45:08 +0000 (19:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 13 Oct 2011 19:45:08 +0000 (19:45 +0000)
src/ats/ats_api_scheduling.c

index 93cd7eab46fd723807b0f67af0c361102f077fce..07d4d85d4da0db675c1fa9d1d84bb5a474580b16 100644 (file)
@@ -159,6 +159,7 @@ transmit_message_to_ats (void *cls,
   {
     memcpy (&cbuf[ret], &p[1], p->size);    
     ret += p->size;
+    size -= p->size;
     GNUNET_CONTAINER_DLL_remove (sh->pending_head,
                                 sh->pending_tail,
                                 p);