diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-06 21:33:13 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-06 21:33:13 +0100 |
commit | 0762a75464f424c5669e96f76c7ab1cf76b8e7a5 (patch) | |
tree | 6caf066b5fb5ea2bd72dade0f4f4de9011d959ab | |
parent | 6532ac1037b448508642d4d97d21ab103bd6735c (diff) | |
download | gnunet-0762a75464f424c5669e96f76c7ab1cf76b8e7a5.tar.gz gnunet-0762a75464f424c5669e96f76c7ab1cf76b8e7a5.zip |
fix log call: wait until pid is initialized
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 6 |
1 files 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, | |||
1146 | struct GNUNET_SERVICE_Client *client = cls; | 1146 | struct GNUNET_SERVICE_Client *client = cls; |
1147 | struct GNUNET_PeerIdentity pid; | 1147 | struct GNUNET_PeerIdentity pid; |
1148 | 1148 | ||
1149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1150 | "HELLO message received for peer `%s'\n", | ||
1151 | GNUNET_i2s (&pid)); | ||
1152 | GNUNET_assert (GNUNET_OK == | 1149 | GNUNET_assert (GNUNET_OK == |
1153 | GNUNET_HELLO_get_id (hello, | 1150 | GNUNET_HELLO_get_id (hello, |
1154 | &pid)); | 1151 | &pid)); |
1152 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1153 | "HELLO message received for peer `%s'\n", | ||
1154 | GNUNET_i2s (&pid)); | ||
1155 | add_host_to_known_hosts (&pid); | 1155 | add_host_to_known_hosts (&pid); |
1156 | update_hello (&pid, | 1156 | update_hello (&pid, |
1157 | hello); | 1157 | hello); |