gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r36481 - gnunet/src/ats
Date: Thu, 8 Oct 2015 13:37:17 +0200

Author: grothoff
Date: 2015-10-08 13:37:17 +0200 (Thu, 08 Oct 2015)
New Revision: 36481

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

Modified: gnunet/src/ats/gnunet-service-ats_performance.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_performance.c     2015-10-08 11:30:19 UTC 
(rev 36480)
+++ gnunet/src/ats/gnunet-service-ats_performance.c     2015-10-08 11:37:17 UTC 
(rev 36481)
@@ -85,7 +85,8 @@
   struct GNUNET_SERVER_NotificationContext *nc;
   char *addrp;
 
-  GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope);
+  if (NULL != prop)
+    GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope);
   GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE);
   msg = (struct PeerInformationMessage *) buf;
   msg->header.size = htons (msize);
@@ -160,7 +161,8 @@
                                     struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_out,
                                     struct GNUNET_BANDWIDTH_Value32NBO 
bandwidth_in)
 {
-  GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope);
+  if (NULL != prop)
+    GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope);
   notify_client (NULL,
                  peer,
                  plugin_name,




reply via email to

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