summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 5aa9f1a51..f2852c71a 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -10272,13 +10272,15 @@ handle_send_message_ack (void *cls,
for (struct QueueEntry *qep = queue->queue_head; NULL != qep;
qep = qep->next)
{
- if (qep->mid != GNUNET_ntohll (sma->mid) && queue->qid != ntohl (sma->qid))
+ if (qep->mid != GNUNET_ntohll (sma->mid) || queue->qid != ntohl (
+ sma->qid))
continue;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "QueueEntry MID: %llu on queue QID: %llu, Ack MID: %llu\n",
+ "QueueEntry MID: %llu on queue QID: %lu, Ack MID: %llu Ack QID %LLU\n",
(unsigned long long) qep->mid,
(unsigned long) queue->qid,
- GNUNET_ntohll (sma->mid));
+ GNUNET_ntohll (sma->mid),
+ ntohl (sma->qid));
qe = qep;
if ((NULL != qe->pm) && (qe->pm->qe != qe))
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,