diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-08 11:37:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-08 11:37:17 +0000 |
commit | 0fac90960cf584a2f85ec24b01b66f5405ef3f3f (patch) | |
tree | 8e09776abdaa7fdbfa4951fdaa7cfb6c7cbe65bd | |
parent | ae53a8d1d043cbd5967fb01316a32685c7a8af9b (diff) |
-fix npe
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 831afb4186..654704df82 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c @@ -85,7 +85,8 @@ notify_client (struct GNUNET_SERVER_Client *client, 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 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, 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, |