commit 505bb1bb0d18f6b44202445f06c00ab9989557a1
parent e00bc06675795ace3cbe2148d75099c22fa21a72
Author: Jacki <jacki@thejackimonster.de>
Date: Mon, 16 Mar 2026 22:54:26 +0100
transport: adjust logging peer identity on communicator connection
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/service/transport/gnunet-service-transport.c b/src/service/transport/gnunet-service-transport.c
@@ -4670,9 +4670,6 @@ handle_communicator_available (
struct TransportClient *tc = cls;
uint16_t size;
- my_identity = GNUNET_PILS_get_identity (pils);
- GNUNET_assert (my_identity);
-
size = ntohs (cam->header.size) - sizeof(*cam);
if (0 == size)
{
@@ -4684,12 +4681,24 @@ handle_communicator_available (
GNUNET_strdup ((const char *) &cam[1]);
tc->details.communicator.cc = ntohl (cam->cc);
tc->details.communicator.can_burst = ntohl (cam->can_burst);
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Communicator for peer %s with prefix '%s' connected %s\n",
- GNUNET_i2s (my_identity),
- tc->details.communicator.address_prefix,
- tc->details.communicator.can_burst ? "can burst" :
- "can not burst");
+ my_identity = GNUNET_PILS_get_identity (pils);
+ if (NULL != my_identity)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Communicator for peer %s with prefix '%s' connected %s\n",
+ GNUNET_i2s (my_identity),
+ tc->details.communicator.address_prefix,
+ tc->details.communicator.can_burst ? "can burst" :
+ "can not burst");
+ }
+ else
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Communicator for local peer with prefix '%s' connected %s\n",
+ tc->details.communicator.address_prefix,
+ tc->details.communicator.can_burst ? "can burst" :
+ "can not burst");
+ }
GNUNET_SERVICE_client_continue (tc->client);
}