diff options
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 5459e216b..de8e5a9c4 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c | |||
@@ -905,8 +905,9 @@ get_active_address (void *solver, | |||
905 | const struct GNUNET_CONTAINER_MultiPeerMap * addresses, | 905 | const struct GNUNET_CONTAINER_MultiPeerMap * addresses, |
906 | const struct GNUNET_PeerIdentity *peer) | 906 | const struct GNUNET_PeerIdentity *peer) |
907 | { | 907 | { |
908 | struct ATS_Address * dest = NULL; | 908 | static struct ATS_Address * dest = NULL; |
909 | 909 | ||
910 | dest = NULL; | ||
910 | GNUNET_CONTAINER_multipeermap_get_multiple (addresses, peer, | 911 | GNUNET_CONTAINER_multipeermap_get_multiple (addresses, peer, |
911 | &get_active_address_it, &dest); | 912 | &get_active_address_it, &dest); |
912 | return dest; | 913 | return dest; |