diff options
Diffstat (limited to 'src/transport/transport_api_monitoring.c')
-rw-r--r-- | src/transport/transport_api_monitoring.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/transport_api_monitoring.c b/src/transport/transport_api_monitoring.c index ef7a01040..50517cc6c 100644 --- a/src/transport/transport_api_monitoring.c +++ b/src/transport/transport_api_monitoring.c | |||
@@ -311,8 +311,7 @@ reconnect (struct GNUNET_TRANSPORT_PeerMonitoringContext *pal_ctx) | |||
311 | * message with the human-readable address | 311 | * message with the human-readable address |
312 | */ | 312 | */ |
313 | static void | 313 | static void |
314 | peer_response_processor (void *cls, | 314 | peer_response_processor (void *cls, const struct GNUNET_MessageHeader *msg) |
315 | const struct GNUNET_MessageHeader *msg) | ||
316 | { | 315 | { |
317 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pal_ctx = cls; | 316 | struct GNUNET_TRANSPORT_PeerMonitoringContext *pal_ctx = cls; |
318 | struct PeerIterateResponseMessage *pir_msg; | 317 | struct PeerIterateResponseMessage *pir_msg; |
@@ -432,7 +431,7 @@ peer_response_processor (void *cls, | |||
432 | 431 | ||
433 | /* notify client */ | 432 | /* notify client */ |
434 | address = GNUNET_HELLO_address_allocate (&pir_msg->peer, | 433 | address = GNUNET_HELLO_address_allocate (&pir_msg->peer, |
435 | transport_name, addr, alen); | 434 | transport_name, addr, alen, ntohl(pir_msg->local_address_info)); |
436 | pal_ctx->cb (pal_ctx->cb_cls, &pir_msg->peer, address, | 435 | pal_ctx->cb (pal_ctx->cb_cls, &pir_msg->peer, address, |
437 | ntohl(pir_msg->state), | 436 | ntohl(pir_msg->state), |
438 | GNUNET_TIME_absolute_ntoh (pir_msg->state_timeout)); | 437 | GNUNET_TIME_absolute_ntoh (pir_msg->state_timeout)); |