diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-11-03 17:32:29 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-11-03 17:32:29 +0100 |
commit | 6e80a32260f1edc4c36e758749dedaf1622cae62 (patch) | |
tree | 368100094ff1d8961c86ba1ee6717ac178c318d8 /src/backend/taler-merchant-httpd.c | |
parent | 2d198327bc71954ff4d78042f67612a3a3b40361 (diff) | |
download | merchant-6e80a32260f1edc4c36e758749dedaf1622cae62.tar.gz merchant-6e80a32260f1edc4c36e758749dedaf1622cae62.tar.bz2 merchant-6e80a32260f1edc4c36e758749dedaf1622cae62.zip |
Adding:
- new JNC for fetching strings within JSONs (tested, and presumably
to be included into the mint codebase).
- error handling if the the wallet gives (inside a deposit permission)
a wrong denomination key for a right mint
Fixing minor issues.
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 95dbec6b..288aa330 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -247,10 +247,10 @@ url_handler (void *cls, upload_data_size); } return TMH_MHD_handler_static_response (&h404, - connection, - con_cls, - upload_data, - upload_data_size); + connection, + con_cls, + upload_data, + upload_data_size); } @@ -281,7 +281,12 @@ keys_mgmt_cb (void *cls, const struct TALER_MINT_Keys *keys) the wallet didn't exceede the limit imposed by the merchant on the total deposit fee for a purchase */ - ((struct MERCHANT_Mint *) cls)->pending = 0; + if (NULL != keys) + { + ((struct MERCHANT_Mint *) cls)->pending = 0; + } + else + printf ("no keys gotten\n"); } @@ -532,7 +537,7 @@ main (int argc, char *const *argv) if (GNUNET_OK != GNUNET_PROGRAM_run (argc, argv, - "taler-merchant-serve", + "taler-merchant-http", "Serve merchant's HTTP interface", options, &run, NULL)) return 3; |