summaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index c9e61d5d4..4624288c4 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -347,6 +347,13 @@ GSF_update_peer_latency_ (const struct GNUNET_PeerIdentity *id,
struct GSF_ConnectedPeer *cp;
cp = GSF_peer_get_ (id);
+
+ if (NULL == cp)
+ {
+ GNUNET_break (0);
+ return;
+ }
+
GNUNET_LOAD_value_set_decline (cp->ppd.transmission_delay, latency);
/* LATER: merge atsi into cp's performance data (if we ever care...) */
}