From 0762a75464f424c5669e96f76c7ab1cf76b8e7a5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 6 Jan 2018 21:33:13 +0100 Subject: [PATCH] fix log call: wait until pid is initialized --- src/peerinfo/gnunet-service-peerinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index bdb6e5e0d..6b39149be 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c @@ -1146,12 +1146,12 @@ handle_hello (void *cls, struct GNUNET_SERVICE_Client *client = cls; struct GNUNET_PeerIdentity pid; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "HELLO message received for peer `%s'\n", - GNUNET_i2s (&pid)); GNUNET_assert (GNUNET_OK == GNUNET_HELLO_get_id (hello, &pid)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "HELLO message received for peer `%s'\n", + GNUNET_i2s (&pid)); add_host_to_known_hosts (&pid); update_hello (&pid, hello); -- 2.25.1