diff options
Diffstat (limited to 'src/transport/transport_api_address_iterate.c')
-rw-r--r-- | src/transport/transport_api_address_iterate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/transport/transport_api_address_iterate.c b/src/transport/transport_api_address_iterate.c index 4f442fda0..833b82d7e 100644 --- a/src/transport/transport_api_address_iterate.c +++ b/src/transport/transport_api_address_iterate.c | |||
@@ -110,8 +110,7 @@ peer_address_response_processor (void *cls, | |||
110 | return; | 110 | return; |
111 | } | 111 | } |
112 | /* expect more replies */ | 112 | /* expect more replies */ |
113 | GNUNET_CLIENT_receive (alucb->client, | 113 | GNUNET_CLIENT_receive (alucb->client, &peer_address_response_processor, alucb, |
114 | &peer_address_response_processor, alucb, | ||
115 | GNUNET_TIME_absolute_get_remaining (alucb->timeout)); | 114 | GNUNET_TIME_absolute_get_remaining (alucb->timeout)); |
116 | alucb->cb (alucb->cb_cls, address); | 115 | alucb->cb (alucb->cb_cls, address); |
117 | } | 116 | } |
@@ -154,10 +153,8 @@ GNUNET_TRANSPORT_address_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
154 | peer_address_lookup_cb->timeout = abs_timeout; | 153 | peer_address_lookup_cb->timeout = abs_timeout; |
155 | peer_address_lookup_cb->client = client; | 154 | peer_address_lookup_cb->client = client; |
156 | GNUNET_assert (GNUNET_OK == | 155 | GNUNET_assert (GNUNET_OK == |
157 | GNUNET_CLIENT_transmit_and_get_response (client, | 156 | GNUNET_CLIENT_transmit_and_get_response (client, &msg.header, |
158 | &msg.header, | 157 | timeout, GNUNET_YES, |
159 | timeout, | ||
160 | GNUNET_YES, | ||
161 | &peer_address_response_processor, | 158 | &peer_address_response_processor, |
162 | peer_address_lookup_cb)); | 159 | peer_address_lookup_cb)); |
163 | } | 160 | } |