summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-08 09:16:30 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-08 09:16:30 +0000
commitf2257ba6dd452dddb4a425689a1c137433b5f578 (patch)
treef8f930bb208a0a69dbd3bbaa2187ac15773f56b4
parentbf6ecbf906e13877e05c7af89e8428b22de32fc9 (diff)
fs crashing in integraton tests
added check
-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...) */
}