aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-12 09:36:33 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-12 09:36:33 +0200
commit99f8204531ebb4d388eec7919afd4b7a3ae0b096 (patch)
tree8c606540b59d1cf0d8ee23114b54112c271af400 /src/namestore
parentbe3bbfb4728669698ad7dabb5e0d8648d31a43a8 (diff)
downloadgnunet-99f8204531ebb4d388eec7919afd4b7a3ae0b096.tar.gz
gnunet-99f8204531ebb4d388eec7919afd4b7a3ae0b096.zip
fix: GNUNET_is_zero(ptr) should return enum GNUNET_GenericReturnValue. Fixes #6475.
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-service-namestore.c4
-rw-r--r--src/namestore/namestore_api_monitor.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index bb8138e23..b24bb2952 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -1809,7 +1809,7 @@ run_zone_iteration_round (struct ZoneIteration *zi, uint64_t limit)
1809 start = GNUNET_TIME_absolute_get (); 1809 start = GNUNET_TIME_absolute_get ();
1810 GNUNET_break (GNUNET_SYSERR != 1810 GNUNET_break (GNUNET_SYSERR !=
1811 GSN_database->iterate_records (GSN_database->cls, 1811 GSN_database->iterate_records (GSN_database->cls,
1812 (0 == GNUNET_is_zero (&zi->zone)) 1812 (GNUNET_YES == GNUNET_is_zero (&zi->zone))
1813 ? NULL 1813 ? NULL
1814 : &zi->zone, 1814 : &zi->zone,
1815 zi->seq, 1815 zi->seq,
@@ -2083,7 +2083,7 @@ monitor_iteration_next (void *cls)
2083 else 2083 else
2084 zm->iteration_cnt = zm->limit; /* use it all */ 2084 zm->iteration_cnt = zm->limit; /* use it all */
2085 ret = GSN_database->iterate_records (GSN_database->cls, 2085 ret = GSN_database->iterate_records (GSN_database->cls,
2086 (0 == GNUNET_is_zero (&zm->zone)) 2086 (GNUNET_YES == GNUNET_is_zero (&zm->zone))
2087 ? NULL 2087 ? NULL
2088 : &zm->zone, 2088 : &zm->zone,
2089 zm->seq, 2089 zm->seq,
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index ab6140328..9dc955544 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -139,7 +139,7 @@ check_result (void *cls, const struct RecordResultMessage *lrm)
139 139
140 (void) cls; 140 (void) cls;
141 if ((0 != GNUNET_memcmp (&lrm->private_key, &zm->zone)) && 141 if ((0 != GNUNET_memcmp (&lrm->private_key, &zm->zone)) &&
142 (0 != GNUNET_is_zero (&zm->zone))) 142 (GNUNET_NO == GNUNET_is_zero (&zm->zone)))
143 { 143 {
144 GNUNET_break (0); 144 GNUNET_break (0);
145 return GNUNET_SYSERR; 145 return GNUNET_SYSERR;