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) | |
download | gnunet-0fac90960cf584a2f85ec24b01b66f5405ef3f3f.tar.gz gnunet-0fac90960cf584a2f85ec24b01b66f5405ef3f3f.zip |
-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 831afb418..654704df8 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, | |||
85 | struct GNUNET_SERVER_NotificationContext *nc; | 85 | struct GNUNET_SERVER_NotificationContext *nc; |
86 | char *addrp; | 86 | char *addrp; |
87 | 87 | ||
88 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | 88 | if (NULL != prop) |
89 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | ||
89 | GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE); | 90 | GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE); |
90 | msg = (struct PeerInformationMessage *) buf; | 91 | msg = (struct PeerInformationMessage *) buf; |
91 | msg->header.size = htons (msize); | 92 | msg->header.size = htons (msize); |
@@ -160,7 +161,8 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, | |||
160 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 161 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
161 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | 162 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
162 | { | 163 | { |
163 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | 164 | if (NULL != prop) |
165 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | ||
164 | notify_client (NULL, | 166 | notify_client (NULL, |
165 | peer, | 167 | peer, |
166 | plugin_name, | 168 | plugin_name, |