summaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-10-15 00:55:41 +0000
committerBart Polot <bart@net.in.tum.de>2014-10-15 00:55:41 +0000
commitad9ba0bc00306ef38b8b3cc4748dd216f59e7e50 (patch)
tree240ed82fdc8dedc5010971485c5fec57769b7d78 /src/cadet
parent48584ab51c23ea0520869fd373edd4784dd14802 (diff)
- signal when dht path is not correct, style
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_dht.c7
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,
p = path_build_from_dht (get_path, get_path_length,
put_path, put_path_length);
+ if (NULL == p)
+ {
+ GNUNET_break_op (0);
+ return;
+ }
+
s = path_2s (p);
LOG (GNUNET_ERROR_TYPE_INFO, "Got path from DHT: %s\n", s);
GNUNET_free_non_null (s);
@@ -188,7 +194,6 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
hello = (struct GNUNET_HELLO_Message *) data;
GCP_set_hello (peer, hello);
GCP_try_connect (peer);
- return;
}