diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index c3d9e78eb..57e4e98ff 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -90,8 +90,13 @@ notify_client (struct GNUNET_SERVER_Client *client, | |||
90 | msg->plugin_name_length = htons (plugin_name_length); | 90 | msg->plugin_name_length = htons (plugin_name_length); |
91 | msg->bandwidth_out = bandwidth_out; | 91 | msg->bandwidth_out = bandwidth_out; |
92 | msg->bandwidth_in = bandwidth_in; | 92 | msg->bandwidth_in = bandwidth_in; |
93 | GNUNET_ATS_properties_hton (&msg->properties, | 93 | if (NULL != prop) |
94 | prop); | 94 | GNUNET_ATS_properties_hton (&msg->properties, |
95 | prop); | ||
96 | else | ||
97 | memset (&msg->properties, | ||
98 | 0, | ||
99 | sizeof (struct GNUNET_ATS_Properties)); | ||
95 | addrp = (char *) &msg[1]; | 100 | addrp = (char *) &msg[1]; |
96 | memcpy (addrp, plugin_addr, plugin_addr_len); | 101 | memcpy (addrp, plugin_addr, plugin_addr_len); |
97 | strcpy (&addrp[plugin_addr_len], plugin_name); | 102 | strcpy (&addrp[plugin_addr_len], plugin_name); |