diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-07 23:21:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-07 23:21:49 +0200 |
commit | 0fd6cf19afc8091494ba1b2adcf2b4b2c7bcadcb (patch) | |
tree | df92291464c7142cf7011f37a63fd860d5c36ac3 /src/exchangedb/plugin_exchangedb_postgres.c | |
parent | 745719dbc1482734ab3ca7a20541ee8a12ecb69c (diff) |
mostly working migration of the DH-seeded refresh variant
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |