From d238b9d3986a0fde6e42626c9b966eb70f6004ea Mon Sep 17 00:00:00 2001 From: Fournier Nicolas Date: Thu, 13 Aug 2015 09:20:35 +0200 Subject: fix for get_known_coin --- src/mintdb/plugin_mintdb_postgres.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mintdb/plugin_mintdb_postgres.c') diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c index c945e92df..b0fe11b59 100644 --- a/src/mintdb/plugin_mintdb_postgres.c +++ b/src/mintdb/plugin_mintdb_postgres.c @@ -2116,6 +2116,8 @@ get_known_coin (void *cls, return GNUNET_NO; } GNUNET_assert (1 == nrows); /* due to primary key */ + if (NULL == coin_info) + return GNUNET_YES; { struct TALER_PQ_ResultSpec rs[] = { TALER_PQ_result_spec_rsa_public_key ("denom_pub", &coin_info->denom_pub.rsa_public_key), -- cgit v1.2.3