[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35215 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35215 - gnunet/src/ats |
Date: |
Wed, 11 Feb 2015 14:33:04 +0100 |
Author: grothoff
Date: 2015-02-11 14:33:04 +0100 (Wed, 11 Feb 2015)
New Revision: 35215
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.c
Log:
-fix NPE
Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c 2015-02-11 10:47:32 UTC
(rev 35214)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c 2015-02-11 13:33:04 UTC
(rev 35215)
@@ -575,8 +575,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];
if (NULL != plugin_addr)
memcpy (addrp, plugin_addr, plugin_addr_len);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35215 - gnunet/src/ats,
gnunet <=