From e1dd69dbee56a5b3b3b19fb6914fd4945f3416cb Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 13 May 2011 08:52:06 +0000 Subject: [PATCH] fixed segfault --- src/transport/gnunet-service-transport.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 158499407..c8ae971e6 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -2528,7 +2528,7 @@ plugin_env_session_end (void *cls, #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Session ended with peer `%4s', %s\n", - GNUNET_i2s(&nl->id), + GNUNET_i2s(peer), "plugin_env_session_end"); #endif GNUNET_CONTAINER_multihashmap_iterate (validation_map, @@ -2540,7 +2540,7 @@ plugin_env_session_end (void *cls, #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "No neighbour record found for peer `%4s'\n", - GNUNET_i2s(&nl->id)); + GNUNET_i2s(peer)); #endif return; /* was never marked as connected */ } @@ -2556,7 +2556,7 @@ plugin_env_session_end (void *cls, #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Plugin was associated with peer `%4s'\n", - GNUNET_i2s(&nl->id)); + GNUNET_i2s(peer)); #endif disconnect_neighbour (nl, GNUNET_YES); return; @@ -2574,7 +2574,7 @@ plugin_env_session_end (void *cls, #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Session was never marked as ready for peer `%4s'\n", - GNUNET_i2s(&nl->id)); + GNUNET_i2s(peer)); #endif disconnect_neighbour (nl, GNUNET_YES); return; /* was never marked as connected */ @@ -2623,7 +2623,7 @@ plugin_env_session_end (void *cls, #if DEBUG_TRANSPORT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting peer `%4s', %s\n", - GNUNET_i2s(&nl->id), + GNUNET_i2s(peer), "plugin_env_session_end"); #endif /* FIXME: This doesn't mean there are no addresses left for this PEER, -- 2.25.1