From 0fd6cf19afc8091494ba1b2adcf2b4b2c7bcadcb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 7 Aug 2016 23:21:49 +0200 Subject: mostly working migration of the DH-seeded refresh variant --- src/exchangedb/plugin_exchangedb_postgres.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 47d59c86..0c4f908c 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -3464,7 +3464,7 @@ postgres_get_link_data_list (void *cls, return NULL; } - for (i = 0; i < nrows; i++) + for (i = nrows-1; i >= 0; i--) { struct GNUNET_CRYPTO_RsaPublicKey *denom_pub; struct GNUNET_CRYPTO_RsaSignature *sig; @@ -3481,7 +3481,9 @@ postgres_get_link_data_list (void *cls, }; if (GNUNET_OK != - GNUNET_PQ_extract_result (result, rs, i)) + GNUNET_PQ_extract_result (result, + rs, + i)) { PQclear (result); GNUNET_break (0); -- cgit v1.2.3