[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 02/06: TNG: Fixed bug in handling hello to start validation.
From: |
gnunet |
Subject: |
[gnunet] 02/06: TNG: Fixed bug in handling hello to start validation. |
Date: |
Fri, 27 Oct 2023 17:43:55 +0200 |
This is an automated email from the git hooks/post-receive script.
t3sserakt pushed a commit to branch master
in repository gnunet.
commit aa9bebd0ea357b84551c51ad3579bea3f7a3a662
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Fri Oct 27 11:30:47 2023 +0200
TNG: Fixed bug in handling hello to start validation.
---
src/service/transport/gnunet-service-transport.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/service/transport/gnunet-service-transport.c
b/src/service/transport/gnunet-service-transport.c
index a1848fbb1..bb11da1cc 100644
--- a/src/service/transport/gnunet-service-transport.c
+++ b/src/service/transport/gnunet-service-transport.c
@@ -8655,6 +8655,7 @@ handle_hello_for_incoming (void *cls,
const char *emsg)
{
struct GNUNET_HELLO_Builder *builder;
+ struct GNUNET_PeerIdentity *pid;
if (NULL != emsg)
{
@@ -8665,11 +8666,14 @@ handle_hello_for_incoming (void *cls,
}
if (0 == GNUNET_memcmp (peer, &GST_my_identity))
return;
- builder = GNUNET_HELLO_builder_new (peer);
+ builder = GNUNET_HELLO_builder_from_msg (hello);
+ pid = GNUNET_new (struct GNUNET_PeerIdentity);
GNUNET_HELLO_builder_iterate (builder,
(struct GNUNET_PeerIdentity *) peer,
hello_for_incoming_cb,
(struct GNUNET_PeerIdentity *) peer);
+ GNUNET_free (pid);
+ GNUNET_HELLO_builder_free (builder);
}
@@ -11289,6 +11293,7 @@ handle_hello_for_client (void *cls,
{
(void) cls;
struct GNUNET_HELLO_Builder *builder;
+ struct GNUNET_PeerIdentity *pid;
if (NULL != emsg)
{
@@ -11299,11 +11304,14 @@ handle_hello_for_client (void *cls,
}
if (0 == GNUNET_memcmp (peer, &GST_my_identity))
return;
- builder = GNUNET_HELLO_builder_new (peer);
+ builder = GNUNET_HELLO_builder_from_msg (hello);
+ pid = GNUNET_new (struct GNUNET_PeerIdentity);
GNUNET_HELLO_builder_iterate (builder,
(struct GNUNET_PeerIdentity *) peer,
hello_for_client_cb,
NULL);
+ GNUNET_free (pid);
+ GNUNET_HELLO_builder_free (builder);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (99118ccc8 -> 23853f2d7), gnunet, 2023/10/27
- [gnunet] 01/06: Changed relative path to no force test config, gnunet, 2023/10/27
- [gnunet] 02/06: TNG: Fixed bug in handling hello to start validation.,
gnunet <=
- [gnunet] 05/06: Cadet: Changes to use DhtHelloMessage instead of HelloUriMessage, and to hand over not a HelloMessage, but a block to the dht., gnunet, 2023/10/27
- [gnunet] 04/06: Hello: Fixed usage of GNUNET_HELLO_builder_iterate., gnunet, 2023/10/27
- [gnunet] 06/06: Merge branch 'master' of ssh://git.gnunet.org/gnunet, gnunet, 2023/10/27
- [gnunet] 03/06: News: Introduced closure to hold store context when caling function to add hello in peerstore., gnunet, 2023/10/27