aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-05-21 08:02:38 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-05-21 08:02:38 +0000
commitcb8d8079b402d69f1fa92ccdb5242e117493e174 (patch)
treea9786560574bf0fd9e6cec9b0448dff14868f01b /src/dv
parent3a33753786eca144a1dd2c3c4884b78774f29e3b (diff)
performance API indicates disconnect
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index a3d6e4942f..67db7072bd 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -1321,6 +1321,12 @@ handle_ats_update (void *cls,
uint32_t distance;
enum GNUNET_ATS_Network_Type network = GNUNET_ATS_NET_UNSPECIFIED;
+ if (NULL == address)
+ {
+ /* ATS service temporarily disconnected */
+ return;
+ }
+
if (GNUNET_NO == active)
return;
distance = get_atsi_distance (ats, ats_count);