[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 05/27: Transport: Fixed bug in handling of AckPending.
From: |
gnunet |
Subject: |
[gnunet] 05/27: Transport: Fixed bug in handling of AckPending. |
Date: |
Thu, 14 Dec 2023 19:22:59 +0100 |
This is an automated email from the git hooks/post-receive script.
sebi pushed a commit to branch master
in repository gnunet.
commit 8d3c8c33e1dc124011b8664b26d018362cc03ac5
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] 02/27: SBOX: Fix memory leaks in gns resovler, (continued)
- [gnunet] 02/27: SBOX: Fix memory leaks in gns resovler, gnunet, 2023/12/14
- [gnunet] 01/27: GNS: Implementation of SBOX records, gnunet, 2023/12/14
- [gnunet] 03/27: GNS: Add test_gns_box_sbox.sh and test_gns_sbox.sh scripts, gnunet, 2023/12/14
- [gnunet] 07/27: Transport: Fixed bugs in core message cache., gnunet, 2023/12/14
- [gnunet] 10/27: Transport: Fixed bug to check each queue for validity separately., gnunet, 2023/12/14
- [gnunet] 06/27: Transport: Removed misplaced removal of QueueEntry., gnunet, 2023/12/14
- [gnunet] 08/27: Transport: We need to check if a message was cached when resuming communicators., gnunet, 2023/12/14
- [gnunet] 09/27: Transport: Fixed bug handling queue length and QueueEntry when queue has no capacity., gnunet, 2023/12/14
- [gnunet] 12/27: build: update sqlite version requirement, gnunet, 2023/12/14
- [gnunet] 11/27: Transport: More useful debug logging für service., gnunet, 2023/12/14
- [gnunet] 05/27: Transport: Fixed bug in handling of AckPending.,
gnunet <=
- [gnunet] 22/27: meson: add blind signature sources to util - slack coder, gnunet, 2023/12/14
- [gnunet] 23/27: bump debian version, gnunet, 2023/12/14
- [gnunet] 25/27: handbook: update, gnunet, 2023/12/14
- [gnunet] 13/27: meson: more version detection logic, gnunet, 2023/12/14
- [gnunet] 14/27: build: Add generated files for GNS service ports and protocols for BOX, gnunet, 2023/12/14
- [gnunet] 20/27: conversation: fix test new API GNS, gnunet, 2023/12/14
- [gnunet] 16/27: meson: remove gnunetdeps variable; explicitly specifiy dependencies, gnunet, 2023/12/14
- [gnunet] 21/27: conversation: More API fixes, gnunet, 2023/12/14
- [gnunet] 15/27: meson: add libpthread detection, gnunet, 2023/12/14
- [gnunet] 17/27: TRANSPORT: Handle 0 byte datagram., gnunet, 2023/12/14