From: Christian Grothoff Date: Sat, 6 Jan 2018 20:33:13 +0000 (+0100) Subject: fix log call: wait until pid is initialized X-Git-Tag: gnunet-0.11.0rc0~2^2~16^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0762a75464f424c5669e96f76c7ab1cf76b8e7a5;p=oweals%2Fgnunet.git fix log call: wait until pid is initialized --- 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);