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) | |
download | gnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.tar.gz gnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.zip |
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 491cec1cb..de8d76853 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, | |||
217 | GNUNET_PQ_query_param_end | 217 | GNUNET_PQ_query_param_end |
218 | }; | 218 | }; |
219 | enum GNUNET_DB_QueryStatus res; | 219 | enum GNUNET_DB_QueryStatus res; |
220 | 220 | ssize_t ret; | |
221 | if (data_size != | 221 | |
222 | GNUNET_GNSRECORD_records_serialize (rd_count, rd, | 222 | ret = GNUNET_GNSRECORD_records_serialize (rd_count, |
223 | data_size, data)) | 223 | rd, |
224 | data_size, | ||
225 | data); | ||
226 | if ( (ret < 0) || | ||
227 | (data_size != (size_t) ret) ) | ||
224 | { | 228 | { |
225 | GNUNET_break (0); | 229 | GNUNET_break (0); |
226 | return GNUNET_SYSERR; | 230 | return GNUNET_SYSERR; |
@@ -469,7 +473,6 @@ namestore_postgres_zone_to_name (void *cls, | |||
469 | pc.iter = iter; | 473 | pc.iter = iter; |
470 | pc.iter_cls = iter_cls; | 474 | pc.iter_cls = iter_cls; |
471 | pc.zone_key = zone; | 475 | pc.zone_key = zone; |
472 | |||
473 | res = GNUNET_PQ_eval_prepared_multi_select (plugin->dbh, | 476 | res = GNUNET_PQ_eval_prepared_multi_select (plugin->dbh, |
474 | "zone_to_name", | 477 | "zone_to_name", |
475 | params, | 478 | params, |