aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-11 10:47:32 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-11 10:47:32 +0000
commite62cb236ec80d3a1435900f80727474bd98eaffa (patch)
tree9ada3a3f651aa69db2f53587ec333f0636f0db51 /src/ats
parent1c323bd4cbb388a9e7515a1f733a3062bf093aee (diff)
downloadgnunet-e62cb236ec80d3a1435900f80727474bd98eaffa.tar.gz
gnunet-e62cb236ec80d3a1435900f80727474bd98eaffa.zip
-fix crash
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/gnunet-service-ats_performance.c9
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);