gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 03/10: Transport: Fixed bug in handling of AckPending.


From: gnunet
Subject: [gnunet] 03/10: Transport: Fixed bug in handling of AckPending.
Date: Sat, 09 Dec 2023 12:45:08 +0100

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

commit e2a4d6cb5ffed0504d14110619ab8125af966263
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Sat Dec 9 12:21:43 2023 +0100

    Transport: Fixed bug in handling of AckPending.
---
 src/service/transport/transport_api2_communication.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/service/transport/transport_api2_communication.c 
b/src/service/transport/transport_api2_communication.c
index 0a7636843..fe7e69158 100644
--- a/src/service/transport/transport_api2_communication.c
+++ b/src/service/transport/transport_api2_communication.c
@@ -672,9 +672,13 @@ send_ack_cb (void *cls)
   struct AckPending *ap = cls;
   struct GNUNET_TRANSPORT_CommunicatorHandle *ch = ap->ch;
 
-  GNUNET_CONTAINER_DLL_remove (ch->ap_head, ch->ap_tail, ap);
-  send_ack (ch, GNUNET_OK, &ap->receiver, ap->mid, ap->qid);
-  GNUNET_free (ap);
+  if (NULL != ch->ap_head && NULL != ap)
+    GNUNET_CONTAINER_DLL_remove (ch->ap_head, ch->ap_tail, ap);
+  if (NULL != ap)
+  {
+    send_ack (ch, GNUNET_OK, &ap->receiver, ap->mid, ap->qid);
+    GNUNET_free (ap);
+  }
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]