diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 17f030a6c..e96197813 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -575,8 +575,13 @@ transmit_req_addr (struct AddressIteration *ai, | |||
575 | msg->plugin_name_length = htons (plugin_name_length); | 575 | msg->plugin_name_length = htons (plugin_name_length); |
576 | msg->bandwidth_out = bandwidth_out; | 576 | msg->bandwidth_out = bandwidth_out; |
577 | msg->bandwidth_in = bandwidth_in; | 577 | msg->bandwidth_in = bandwidth_in; |
578 | GNUNET_ATS_properties_hton (&msg->properties, | 578 | if (NULL != prop) |
579 | prop); | 579 | GNUNET_ATS_properties_hton (&msg->properties, |
580 | prop); | ||
581 | else | ||
582 | memset (&msg->properties, | ||
583 | 0, | ||
584 | sizeof (struct GNUNET_ATS_Properties)); | ||
580 | addrp = (char *) &msg[1]; | 585 | addrp = (char *) &msg[1]; |
581 | if (NULL != plugin_addr) | 586 | if (NULL != plugin_addr) |
582 | memcpy (addrp, plugin_addr, plugin_addr_len); | 587 | memcpy (addrp, plugin_addr, plugin_addr_len); |