diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-11 21:38:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-11 21:38:09 +0000 |
commit | 227e2a5b6f22426fc092587b38f08f49dd5ffa0e (patch) | |
tree | 58b603183d603914d4c58506c5d235961afd693b /src/topology/gnunet-daemon-topology.c | |
parent | 40be0654bde9821298f70c17d53529d82918a015 (diff) | |
download | gnunet-227e2a5b6f22426fc092587b38f08f49dd5ffa0e.tar.gz gnunet-227e2a5b6f22426fc092587b38f08f49dd5ffa0e.zip |
nicer
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index cfe1a66e8..8c31fea58 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -867,7 +867,11 @@ consider_for_advertising (const struct GNUNET_HELLO_Message *hello) | |||
867 | struct Peer *peer; | 867 | struct Peer *peer; |
868 | uint16_t size; | 868 | uint16_t size; |
869 | 869 | ||
870 | GNUNET_break (GNUNET_OK == GNUNET_HELLO_get_id (hello, &pid)); | 870 | if (GNUNET_OK != GNUNET_HELLO_get_id (hello, &pid)) |
871 | { | ||
872 | GNUNET_break (0); | ||
873 | return; | ||
874 | } | ||
871 | if (0 == memcmp (&pid, | 875 | if (0 == memcmp (&pid, |
872 | &my_identity, | 876 | &my_identity, |
873 | sizeof (struct GNUNET_PeerIdentity))) | 877 | sizeof (struct GNUNET_PeerIdentity))) |