commit 4d9f7493cf96f560a853d2fbe34e7eee2065145d parent 17a49aabbb796839236cde428f82ae69a1665bcb Author: Daniel Golle <daniel@makrotopia.org> Date: Fri, 23 Jun 2017 13:54:40 +0200 namestore: postgres: fix iterating over zone Stop iterating on GNUNET_DB_STATUS_SUCCESS_NO_RESULTS. Diffstat:
| M | src/namestore/plugin_namestore_postgres.c | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c @@ -432,6 +432,10 @@ namestore_postgres_iterate_records (void *cls, } if (res < 0) return GNUNET_SYSERR; + + if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) + return GNUNET_NO; + return GNUNET_OK; }