From 4d9f7493cf96f560a853d2fbe34e7eee2065145d Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 23 Jun 2017 13:54:40 +0200 Subject: [PATCH] namestore: postgres: fix iterating over zone Stop iterating on GNUNET_DB_STATUS_SUCCESS_NO_RESULTS. --- src/namestore/plugin_namestore_postgres.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index b1a6529aa..c2ea3d0a6 100644 --- 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; } -- 2.25.1