From faa8954427b1ff75de00711c127afb8072bad709 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 9 Apr 2015 11:53:16 +0000 Subject: adding disconnect check for performance cb --- src/ats-tests/ats-testing.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/ats-tests/ats-testing.c b/src/ats-tests/ats-testing.c index 94b21e50d..66a674adb 100644 --- a/src/ats-tests/ats-testing.c +++ b/src/ats-tests/ats-testing.c @@ -555,6 +555,13 @@ ats_performance_info_cb (void *cls, int log; char *peer_id; + if (NULL == address) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peer %u: ATS Service disconnected!\n", + me->no); + return; + } + p = find_partner (me, &address->peer); if (NULL == p) { -- cgit v1.2.3