gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35214 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r35214 - gnunet/src/ats
Date: Wed, 11 Feb 2015 11:47:32 +0100

Author: grothoff
Date: 2015-02-11 11:47:32 +0100 (Wed, 11 Feb 2015)
New Revision: 35214

Modified:
   gnunet/src/ats/gnunet-service-ats_performance.c
Log:
-fix crash

Modified: gnunet/src/ats/gnunet-service-ats_performance.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_performance.c     2015-02-10 23:24:18 UTC 
(rev 35213)
+++ gnunet/src/ats/gnunet-service-ats_performance.c     2015-02-11 10:47:32 UTC 
(rev 35214)
@@ -90,8 +90,13 @@
   msg->plugin_name_length = htons (plugin_name_length);
   msg->bandwidth_out = bandwidth_out;
   msg->bandwidth_in = bandwidth_in;
-  GNUNET_ATS_properties_hton (&msg->properties,
-                              prop);
+  if (NULL != prop)
+    GNUNET_ATS_properties_hton (&msg->properties,
+                                prop);
+  else
+    memset (&msg->properties,
+            0,
+            sizeof (struct GNUNET_ATS_Properties));
   addrp = (char *) &msg[1];
   memcpy (addrp, plugin_addr, plugin_addr_len);
   strcpy (&addrp[plugin_addr_len], plugin_name);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]