[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 12/40: TNG: Fixed bug that QueueEntry of another queue still ho
From: |
gnunet |
Subject: |
[gnunet] 12/40: TNG: Fixed bug that QueueEntry of another queue still holds reference to PendingMessage. |
Date: |
Thu, 05 Oct 2023 08:57:15 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit aec63bfd2c3d92b9652ea6b1ea963d324ad6310f
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Fri Jul 14 20:10:57 2023 +0200
TNG: Fixed bug that QueueEntry of another queue still holds reference to
PendingMessage.
---
src/transport/gnunet-service-tng.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/transport/gnunet-service-tng.c
b/src/transport/gnunet-service-tng.c
index 23503b998..b6039a2ae 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -3070,6 +3070,11 @@ free_pending_message (struct PendingMessage *pm)
if (NULL != pm->bpm)
{
free_fragment_tree (pm->bpm);
+ if (NULL != pm->bpm->qe)
+ {
+ struct QueueEntry *qe = pm->bpm->qe;
+ qe->pm = NULL;
+ }
GNUNET_free (pm->bpm);
}
@@ -4310,7 +4315,7 @@ handle_client_recv_ok (void *cls, const struct
RecvOkMessage *rom)
delta = ntohl (rom->increase_window_delta);
vl->core_recv_window += delta;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "CORE ack receiving message, increased CORE recv window to %u\n",
+ "CORE ack receiving message, increased CORE recv window to %d\n",
vl->core_recv_window);
GNUNET_SERVICE_client_continue (tc->client);
if (vl->core_recv_window <= 0)
@@ -5749,7 +5754,7 @@ finish_handling_raw_message (struct VirtualLink *vl,
return;
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Delivered message from %s of type %u to CORE recv window %u\n",
+ "Delivered message from %s of type %u to CORE recv window %d\n",
GNUNET_i2s (&cmc->im.sender),
ntohs (mh->type),
vl->core_recv_window);
@@ -10303,9 +10308,10 @@ handle_send_message_ack (void *cls,
GNUNET_ntohll (sma->mid),
ntohl (sma->qid));
// TODO I guess this can happen, if the Ack from the peer comes before the
Ack from the queue.
+ // Update: Maybe QueueEntry was accidentally freed during freeing
PendingMessage.
/* this should never happen */
- /*GNUNET_break (0);
- GNUNET_SERVICE_client_drop (tc->client);*/
+ GNUNET_break (0);
+ //GNUNET_SERVICE_client_drop (tc->client);
GNUNET_SERVICE_client_continue (tc->client);
return;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (92c6b1ae0 -> 898b9a01a), gnunet, 2023/10/05
- [gnunet] 01/40: NEWS: Added __attribute__((deprecated)) to the old transport API, gnunet, 2023/10/05
- [gnunet] 06/40: TNG: Accidentally removed code., gnunet, 2023/10/05
- [gnunet] 02/40: NEWS: Added __attribute__((deprecated)) to the old transport API, gnunet, 2023/10/05
- [gnunet] 09/40: NEWS: Moved start peer command to testing subsystem., gnunet, 2023/10/05
- [gnunet] 05/40: TNG: Deactivated all tests which rely on the old transport api., gnunet, 2023/10/05
- [gnunet] 12/40: TNG: Fixed bug that QueueEntry of another queue still holds reference to PendingMessage.,
gnunet <=
- [gnunet] 13/40: NEWS: Changed new hello uri api to allow to change the expiration time, gnunet, 2023/10/05
- [gnunet] 22/40: NEWS: Code moved to the core package to get rid of circular dependencies., gnunet, 2023/10/05
- [gnunet] 16/40: TOPOLOGY: Exchanged peerinfo api to store hellos with new peerstore api., gnunet, 2023/10/05
- [gnunet] 19/40: HELLO: Cli tool for changing hello files in contrib can change file from old to new hello design., gnunet, 2023/10/05
- [gnunet] 07/40: NEWS: Added command to execute a script., gnunet, 2023/10/05
- [gnunet] 17/40: PEERSTORE: change watch to return actual values, before watching., gnunet, 2023/10/05
- [gnunet] 32/40: Merge branch 'master' into l20integration, gnunet, 2023/10/05
- [gnunet] 29/40: TNG: Fixed syntax., gnunet, 2023/10/05
- [gnunet] 03/40: News: Merge branch 'l20integration' of ssh://git.gnunet.org/gnunet into l20integration, gnunet, 2023/10/05
- [gnunet] 36/40: Fix warnings; CADET not FTBFS because old hello removed, gnunet, 2023/10/05