merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit dfdca4e94cb9150d8cf0d73e368ecf0c0ebff685
parent c892b808b20abfdc64d3e7fb6a39402f3099cc09
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sat, 11 Feb 2017 16:46:36 +0100

Back out early if we can't connect to postgres db

Diffstat:
Msrc/backenddb/plugin_merchantdb_postgres.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c @@ -1363,6 +1363,11 @@ libtaler_plugin_merchantdb_postgres_init (void *cls) } } pg->conn = GNUNET_POSTGRES_connect (cfg, "merchantdb-postgres"); + if (NULL == pg->conn) + { + GNUNET_break (0); + return NULL; + } plugin = GNUNET_new (struct TALER_MERCHANTDB_Plugin); plugin->cls = pg; plugin->drop_tables = &postgres_drop_tables;