From: Bart Polot Date: Tue, 4 Feb 2014 18:51:34 +0000 (+0000) Subject: - store own hello X-Git-Tag: initial-import-from-subversion-38251~4786 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28ba67dfec0c9e681bcb7073ade8bc7b3bdf8c39;p=oweals%2Fgnunet.git - store own hello --- diff --git a/src/mesh/gnunet-service-mesh_hello.c b/src/mesh/gnunet-service-mesh_hello.c index d0209dcf8..c380b0f31 100644 --- a/src/mesh/gnunet-service-mesh_hello.c +++ b/src/mesh/gnunet-service-mesh_hello.c @@ -108,6 +108,9 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id, LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s\n", GNUNET_i2s (id)); peer = GMP_get (id); GMP_set_hello (peer, hello); + + if (GMP_get_short_id (peer) == myid) + mine = hello; }