diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-10-15 00:55:41 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-10-15 00:55:41 +0000 |
commit | ad9ba0bc00306ef38b8b3cc4748dd216f59e7e50 (patch) | |
tree | 240ed82fdc8dedc5010971485c5fec57769b7d78 | |
parent | 48584ab51c23ea0520869fd373edd4784dd14802 (diff) | |
download | gnunet-ad9ba0bc00306ef38b8b3cc4748dd216f59e7e50.tar.gz gnunet-ad9ba0bc00306ef38b8b3cc4748dd216f59e7e50.zip |
- signal when dht path is not correct, style
-rw-r--r-- | src/cadet/gnunet-service-cadet_dht.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c index c9cc51c0b..a44938484 100644 --- a/src/cadet/gnunet-service-cadet_dht.c +++ b/src/cadet/gnunet-service-cadet_dht.c | |||
@@ -178,6 +178,12 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
178 | 178 | ||
179 | p = path_build_from_dht (get_path, get_path_length, | 179 | p = path_build_from_dht (get_path, get_path_length, |
180 | put_path, put_path_length); | 180 | put_path, put_path_length); |
181 | if (NULL == p) | ||
182 | { | ||
183 | GNUNET_break_op (0); | ||
184 | return; | ||
185 | } | ||
186 | |||
181 | s = path_2s (p); | 187 | s = path_2s (p); |
182 | LOG (GNUNET_ERROR_TYPE_INFO, "Got path from DHT: %s\n", s); | 188 | LOG (GNUNET_ERROR_TYPE_INFO, "Got path from DHT: %s\n", s); |
183 | GNUNET_free_non_null (s); | 189 | GNUNET_free_non_null (s); |
@@ -188,7 +194,6 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
188 | hello = (struct GNUNET_HELLO_Message *) data; | 194 | hello = (struct GNUNET_HELLO_Message *) data; |
189 | GCP_set_hello (peer, hello); | 195 | GCP_set_hello (peer, hello); |
190 | GCP_try_connect (peer); | 196 | GCP_try_connect (peer); |
191 | return; | ||
192 | } | 197 | } |
193 | 198 | ||
194 | 199 | ||