diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/bank-lib/taler-exchange-wire-gateway-client.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index fcb2a5c93..dbc9f07ab 100644 --- a/.gitignore +++ b/.gitignore @@ -144,3 +144,4 @@ po/stamp-po po/taler-exchange.pot po/remove-potcdate.sed src/include/taler_dbevents.h +src/bank-lib/taler-exchange-wire-gateway-client diff --git a/src/bank-lib/taler-exchange-wire-gateway-client.c b/src/bank-lib/taler-exchange-wire-gateway-client.c index 842778088..2f5df8722 100644 --- a/src/bank-lib/taler-exchange-wire-gateway-client.c +++ b/src/bank-lib/taler-exchange-wire-gateway-client.c @@ -601,6 +601,16 @@ run (void *cls, rc = GNUNET_CURL_gnunet_rc_create (ctx); if (NULL != account_section) { + if (0 != strncasecmp ("exchange-accountcredentials-" + account_section, + strlen ("exchange-accountcredentials-"))) + { + fprintf (stderr, + "Error: invalid section specified, must begin with `%s`\n", + "exchange-accountcredentials-"); + GNUNET_SCHEDULER_shutdown (); + return; + } if ( (NULL != auth.wire_gateway_url) || (NULL != auth.details.basic.username) || (NULL != auth.details.basic.password) ) |