projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c215523
)
- store own hello
author
Bart Polot
<bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:34 +0000
(18:51 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:34 +0000
(18:51 +0000)
src/mesh/gnunet-service-mesh_hello.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh_hello.c
b/src/mesh/gnunet-service-mesh_hello.c
index d0209dcf8888f353377cb7a0fc7c1e3d7c849eb6..c380b0f314d5e0f7298674262a5db50505f22c62 100644
(file)
--- 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);
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;
}
}