diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 13:52:30 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 13:52:30 +0000 |
commit | a553756fb96ee6a95b6737246d06a8f4694c83fc (patch) | |
tree | 42cf015b97e30693c75f1a60fdd6fca975066687 /src/dht/gnunet-service-dht.c | |
parent | 23213073ff4f19ec7b6422060b012b8cc7fce59c (diff) | |
download | gnunet-a553756fb96ee6a95b6737246d06a8f4694c83fc.tar.gz gnunet-a553756fb96ee6a95b6737246d06a8f4694c83fc.zip |
core connect change, forgotten dht driver change
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index a621e8e82..13fda66ae 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -4929,6 +4929,10 @@ handle_core_connect (void *cls, | |||
4929 | { | 4929 | { |
4930 | struct PeerInfo *ret; | 4930 | struct PeerInfo *ret; |
4931 | 4931 | ||
4932 | /* Check for connect to self message */ | ||
4933 | if (0 == memcmp(&my_identity, peer, sizeof(struct GNUNET_PeerIdentity))) | ||
4934 | return; | ||
4935 | |||
4932 | #if DEBUG_DHT | 4936 | #if DEBUG_DHT |
4933 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 4937 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
4934 | "%s:%s Receives core connect message for peer %s distance %d!\n", | 4938 | "%s:%s Receives core connect message for peer %s distance %d!\n", |
@@ -4978,6 +4982,10 @@ handle_core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
4978 | struct PeerInfo *to_remove; | 4982 | struct PeerInfo *to_remove; |
4979 | int current_bucket; | 4983 | int current_bucket; |
4980 | 4984 | ||
4985 | /* Check for disconnect from self message */ | ||
4986 | if (0 == memcmp(&my_identity, peer, sizeof(struct GNUNET_PeerIdentity))) | ||
4987 | return; | ||
4988 | |||
4981 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 4989 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
4982 | "%s:%s: Received peer disconnect message for peer `%s' from %s\n", | 4990 | "%s:%s: Received peer disconnect message for peer `%s' from %s\n", |
4983 | my_short_id, "DHT", GNUNET_i2s (peer), "CORE"); | 4991 | my_short_id, "DHT", GNUNET_i2s (peer), "CORE"); |