diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-23 16:05:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-23 16:05:07 +0200 |
commit | 2cc0ab3717d0193af0a8b5be4aa367ae1874a812 (patch) | |
tree | 7c7637fdf2ecc8433fab6c60270be6a01a55ac43 /src/namestore/plugin_namestore_postgres.c | |
parent | 4d9f7493cf96f560a853d2fbe34e7eee2065145d (diff) | |
download | gnunet-2cc0ab3717d0193af0a8b5be4aa367ae1874a812.tar.gz gnunet-2cc0ab3717d0193af0a8b5be4aa367ae1874a812.zip |
fix misc namestore crashes from pq migration
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index c2ea3d0a6..491cec1cb 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -229,7 +229,7 @@ namestore_postgres_store_records (void *cls, | |||
229 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, | 229 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
230 | "store_records", | 230 | "store_records", |
231 | params); | 231 | params); |
232 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != res) | 232 | if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != res) |
233 | return GNUNET_SYSERR; | 233 | return GNUNET_SYSERR; |
234 | } | 234 | } |
235 | return GNUNET_OK; | 235 | return GNUNET_OK; |
@@ -372,7 +372,7 @@ namestore_postgres_lookup_records (void *cls, | |||
372 | params, | 372 | params, |
373 | &parse_result_call_iterator, | 373 | &parse_result_call_iterator, |
374 | &pc); | 374 | &pc); |
375 | if (res < 0) | 375 | if (res <= 0) |
376 | return GNUNET_SYSERR; | 376 | return GNUNET_SYSERR; |
377 | return GNUNET_OK; | 377 | return GNUNET_OK; |
378 | } | 378 | } |