- store own hello
authorBart Polot <bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:34 +0000 (18:51 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:34 +0000 (18:51 +0000)
src/mesh/gnunet-service-mesh_hello.c

index d0209dcf8888f353377cb7a0fc7c1e3d7c849eb6..c380b0f314d5e0f7298674262a5db50505f22c62 100644 (file)
@@ -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;
 }