diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-09-01 00:59:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-09-01 00:59:34 +0200 |
commit | c3a1a4ecbea0c8df729b7a29da5d31c1f9dab9c9 (patch) | |
tree | 9fee7ded48451ba9e25b06b355c76078e291cef5 /src/authorization | |
parent | 79de1f2faddd1032fa0f915365be6d85ea333fb3 (diff) | |
download | anastasis-c3a1a4ecbea0c8df729b7a29da5d31c1f9dab9c9.tar.gz anastasis-c3a1a4ecbea0c8df729b7a29da5d31c1f9dab9c9.tar.bz2 anastasis-c3a1a4ecbea0c8df729b7a29da5d31c1f9dab9c9.zip |
separate DB creation from plugin loading; fix misc. Debian package issues
Diffstat (limited to 'src/authorization')
-rw-r--r-- | src/authorization/anastasis-helper-authorization-iban.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/authorization/anastasis-helper-authorization-iban.c b/src/authorization/anastasis-helper-authorization-iban.c index 04dfa03..c6e5335 100644 --- a/src/authorization/anastasis-helper-authorization-iban.c +++ b/src/authorization/anastasis-helper-authorization-iban.c @@ -390,6 +390,16 @@ run (void *cls, return; } if (GNUNET_OK != + db_plugin->connect (db_plugin->cls)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Database not set up. Did you run anastasis-dbinit?\n"); + global_ret = EXIT_NOTCONFIGURED; + ANASTASIS_DB_plugin_unload (db_plugin); + db_plugin = NULL; + return; + } + if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "authorization-iban", "CREDIT_IBAN", |