diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-10 13:02:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-10 13:02:51 +0200 |
commit | 0cd0e3a5287af73bb81219ebc9548395a8945ce8 (patch) | |
tree | b5bb24d78a4eed519b37e6fb8f9291a6282d06d4 /src/namestore/plugin_namestore_postgres.c | |
parent | 3eae3e43d6f94449cb89998a676e6696438cc604 (diff) |
more work on gnunet-zoneimport, some bugfix in flat namestore, misc. style fixes
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 491cec1cb5..de8d76853d 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c @@ -217,10 +217,14 @@ namestore_postgres_store_records (void *cls, GNUNET_PQ_query_param_end }; enum GNUNET_DB_QueryStatus res; - - if (data_size != - GNUNET_GNSRECORD_records_serialize (rd_count, rd, - data_size, data)) + ssize_t ret; + + ret = GNUNET_GNSRECORD_records_serialize (rd_count, + rd, + data_size, + data); + if ( (ret < 0) || + (data_size != (size_t) ret) ) { GNUNET_break (0); return GNUNET_SYSERR; @@ -469,7 +473,6 @@ namestore_postgres_zone_to_name (void *cls, pc.iter = iter; pc.iter_cls = iter_cls; pc.zone_key = zone; - res = GNUNET_PQ_eval_prepared_multi_select (plugin->dbh, "zone_to_name", params, |