typo in comment
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2017 18:42:06 +0000 (19:42 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2017 18:42:06 +0000 (19:42 +0100)
src/cadet/gnunet-service-cadet-new_channel.c
src/include/gnunet_container_lib.h

index 8812af4ec29c18d07daaf63b47db5e42f49b5200..29ad732b076b23e353a6907a0df773449f793283 100644 (file)
@@ -1285,6 +1285,11 @@ handle_matching_ack (struct CadetChannel *ch,
        GCCH_2s (ch),
        (unsigned int) ntohl (crm->data_message->mid.mid),
        ch->pending_messages);
+  if (NULL != crm->qe)
+  {
+    GCT_send_cancel (crm->qe);
+    crm->qe = NULL;
+  }
   GNUNET_free (crm->data_message);
   GNUNET_free (crm);
   send_ack_to_client (ch,
@@ -1331,14 +1336,18 @@ GCCH_handle_channel_plaintext_data_ack (struct CadetChannel *ch,
     {
       handle_matching_ack (ch,
                            crm);
+      found = GNUNET_YES;
       continue;
     }
     delta = (unsigned int) (ntohl (crm->data_message->mid.mid) - mid_base) - 1;
     if (delta >= 64)
       continue;
     if (0 != (mid_mask & (1LLU << delta)))
+    {
       handle_matching_ack (ch,
                            crm);
+      found = GNUNET_YES;
+    }
   }
   if (GNUNET_NO == found)
   {
index cb5d0e595f547b94dcf116d344281b1d3c8e4756..e6f4ba43b6b465af4fff792505ec97558cc41400 100644 (file)
@@ -2092,7 +2092,7 @@ GNUNET_CONTAINER_multihashmap32_iterator_destroy (struct GNUNET_CONTAINER_MultiH
                         element, \
                         head)) ) \
   { \
-    /* insert at head, e;e,emt < head */ \
+    /* insert at head, element < head */ \
     GNUNET_CONTAINER_DLL_insert (head, \
                                  tail, \
                                  element); \