diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-09 11:53:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2015-04-09 11:53:16 +0000 |
commit | faa8954427b1ff75de00711c127afb8072bad709 (patch) | |
tree | b959d84c61ca9e1d5d7ace06670bf5b463d11efc /src/ats-tests | |
parent | b6f2d211d4461053091511e36a7b3c463a32446e (diff) | |
download | gnunet-faa8954427b1ff75de00711c127afb8072bad709.tar.gz gnunet-faa8954427b1ff75de00711c127afb8072bad709.zip |
adding disconnect check for performance cb
Diffstat (limited to 'src/ats-tests')
-rw-r--r-- | src/ats-tests/ats-testing.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, | |||
555 | int log; | 555 | int log; |
556 | char *peer_id; | 556 | char *peer_id; |
557 | 557 | ||
558 | if (NULL == address) | ||
559 | { | ||
560 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peer %u: ATS Service disconnected!\n", | ||
561 | me->no); | ||
562 | return; | ||
563 | } | ||
564 | |||
558 | p = find_partner (me, &address->peer); | 565 | p = find_partner (me, &address->peer); |
559 | if (NULL == p) | 566 | if (NULL == p) |
560 | { | 567 | { |