[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.
- [gnunet] branch master updated (a5dfa2db4 -> e5e1586bb), gnunet, 2023/12/09
- [gnunet] 01/10: Transport: Destroy closed ProtoQueue., gnunet, 2023/12/09
- [gnunet] 04/10: Transport: Removed misplaced removal of QueueEntry., gnunet, 2023/12/09
- [gnunet] 02/10: Transport: Added logging in case of UDP errors, and destroy queue in case of errors., gnunet, 2023/12/09
- [gnunet] 03/10: Transport: Fixed bug in handling of AckPending.,
gnunet <=
- [gnunet] 06/10: Transport: We need to check if a message was cached when resuming communicators., gnunet, 2023/12/09
- [gnunet] 09/10: Transport: More useful debug logging für service., gnunet, 2023/12/09
- [gnunet] 07/10: Transport: Fixed bug handling queue length and QueueEntry when queue has no capacity., gnunet, 2023/12/09
- [gnunet] 05/10: Transport: Fixed bugs in core message cache., gnunet, 2023/12/09
- [gnunet] 08/10: Transport: Fixed bug to check each queue for validity separately., gnunet, 2023/12/09
- [gnunet] 10/10: Merge branch 'master' of ssh://git.gnunet.org/gnunet, gnunet, 2023/12/09