prevent NPE
authorChristian Grothoff <christian@grothoff.org>
Sat, 13 Jan 2018 13:35:06 +0000 (14:35 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 13 Jan 2018 13:35:06 +0000 (14:35 +0100)
src/transport/gnunet-service-transport_neighbours.c
src/util/container_bloomfilter.c

index 2bf07bcd74eb500c7536643ec45a54c0601278c1..e6e4de0f5c3345284804a0afcf1e454a872b0b89 100644 (file)
@@ -2137,6 +2137,8 @@ inbound_bw_tracker_update (void *cls)
               "New inbound delay for peer `%s' is %llu ms\n",
               GNUNET_i2s (&n->id),
               (unsigned long long) delay.rel_value_us / 1000LL);
+  if (NULL == n->primary_address.session)
+    return;
   papi->update_inbound_delay (papi->cls,
                               &n->id,
                               n->primary_address.session,
index 95c05b9d7fe75ad12a8e979d47a299721d928513..db61c5221df97dadef9965bdf8e7c5e1d252adaa 100644 (file)
@@ -660,7 +660,7 @@ GNUNET_CONTAINER_bloomfilter_init (const char *data, size_t size,
  * @param bf bloomfilter to take the raw data from
  * @param data where to write the data
  * @param size the size of the given data array
- * @return GNUNET_SYSERR if the data array is not big enough
+ * @return #GNUNET_SYSERR if the data array is not big enough
  */
 int
 GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct