diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 23:22:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 23:22:18 +0000 |
commit | fa6adc986653bf97b55723e53314d34d2a78115b (patch) | |
tree | 1393a06acc3d7f73bc1a7fd4903206d31e98a814 /src/ats | |
parent | f526573cfa977a227f45374fb9d89a8e0bfb3240 (diff) |
-fix shutdown
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-service-ats_connectivity.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_connectivity.c b/src/ats/gnunet-service-ats_connectivity.c index 1ced117ca5..e9f1e5398b 100644 --- a/src/ats/gnunet-service-ats_connectivity.c +++ b/src/ats/gnunet-service-ats_connectivity.c @@ -64,6 +64,8 @@ unsigned int GAS_connectivity_has_peer (void *cls, const struct GNUNET_PeerIdentity *peer) { + if (NULL == connection_requests) + return 0; /* TODO: return sum of 'strength's of connectivity requests */ return GNUNET_CONTAINER_multipeermap_contains (connection_requests, peer); @@ -218,6 +220,7 @@ GAS_connectivity_done () &free_request, NULL); GNUNET_CONTAINER_multipeermap_destroy (connection_requests); + connection_requests = NULL; } |