diff options
author | Daniel Golle <daniel@makrotopia.org> | 2017-06-23 13:54:40 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2017-06-23 14:18:55 +0200 |
commit | 4d9f7493cf96f560a853d2fbe34e7eee2065145d (patch) | |
tree | 963b4d89a594fad74f8216272cd6a6a3becd48cc /src | |
parent | 17a49aabbb796839236cde428f82ae69a1665bcb (diff) | |
download | gnunet-4d9f7493cf96f560a853d2fbe34e7eee2065145d.tar.gz gnunet-4d9f7493cf96f560a853d2fbe34e7eee2065145d.zip |
namestore: postgres: fix iterating over zone
Stop iterating on GNUNET_DB_STATUS_SUCCESS_NO_RESULTS.
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, | |||
432 | } | 432 | } |
433 | if (res < 0) | 433 | if (res < 0) |
434 | return GNUNET_SYSERR; | 434 | return GNUNET_SYSERR; |
435 | |||
436 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) | ||
437 | return GNUNET_NO; | ||
438 | |||
435 | return GNUNET_OK; | 439 | return GNUNET_OK; |
436 | } | 440 | } |
437 | 441 | ||