summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-13 14:35:06 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-13 14:35:06 +0100
commit7c2ee1630fd348e1a0c1db6508cc5d2d16452acf (patch)
treecaafb15ed6ccac6ca2e60e67fb7d05f7ce2c8bb0 /src/transport/gnunet-service-transport_neighbours.c
parent88a4bbdd9857746e2ffdd9028b091c2be0bd3fe7 (diff)
prevent NPE
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 2bf07bcd7..e6e4de0f5 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -2137,6 +2137,8 @@ inbound_bw_tracker_update (void *cls)
"New inbound delay for peer `%s' is %llu ms\n",
GNUNET_i2s (&n->id),
(unsigned long long) delay.rel_value_us / 1000LL);
+ if (NULL == n->primary_address.session)
+ return;
papi->update_inbound_delay (papi->cls,
&n->id,
n->primary_address.session,