diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-18 22:48:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-19 00:17:15 +0200 |
commit | 2d5b238beb4661721afddd3c76262837d13ee8c4 (patch) | |
tree | 9bab009c0e95d990612287bb141d565004e42c0d /src/exchangedb/test_exchangedb.c | |
parent | 2ec1b055a0f574e3837f2fbbb38098db4eb65f6f (diff) | |
download | exchange-2d5b238beb4661721afddd3c76262837d13ee8c4.tar.xz |
rework /reserve/history to address #5010
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index ba47c2d3c..8c7e4b9c8 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1447,6 +1447,7 @@ run (void *cls) unsigned int cnt; void *rr; size_t rr_size; + enum GNUNET_DB_QueryStatus qs; dkp = NULL; rh = NULL; @@ -1671,9 +1672,11 @@ run (void *cls) json_decref (sndr); result = 7; - rh = plugin->get_reserve_history (plugin->cls, + qs = plugin->get_reserve_history (plugin->cls, session, - &reserve_pub); + &reserve_pub, + &rh); + FAILIF (0 > qs); FAILIF (NULL == rh); rh_head = rh; for (cnt=0; NULL != rh_head; rh_head=rh_head->next, cnt++) |