aboutsummaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/anastasis-httpd_config.c')
-rw-r--r--src/backend/anastasis-httpd_config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/anastasis-httpd_config.c b/src/backend/anastasis-httpd_config.c
index 89b82d0..d265f99 100644
--- a/src/backend/anastasis-httpd_config.c
+++ b/src/backend/anastasis-httpd_config.c
@@ -40,7 +40,6 @@ add_methods (void *cls,
40{ 40{
41 json_t *method_arr = cls; 41 json_t *method_arr = cls;
42 struct ANASTASIS_AuthorizationPlugin *p; 42 struct ANASTASIS_AuthorizationPlugin *p;
43 struct TALER_Amount cost;
44 json_t *method; 43 json_t *method;
45 44
46 if (0 != strncasecmp (section, 45 if (0 != strncasecmp (section,
@@ -54,8 +53,7 @@ add_methods (void *cls,
54 return; 53 return;
55 section += strlen ("authorization-"); 54 section += strlen ("authorization-");
56 p = ANASTASIS_authorization_plugin_load (section, 55 p = ANASTASIS_authorization_plugin_load (section,
57 AH_cfg, 56 AH_cfg);
58 &cost);
59 if (NULL == p) 57 if (NULL == p)
60 { 58 {
61 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 59 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -67,7 +65,7 @@ add_methods (void *cls,
67 GNUNET_JSON_pack_string ("type", 65 GNUNET_JSON_pack_string ("type",
68 section), 66 section),
69 TALER_JSON_pack_amount ("cost", 67 TALER_JSON_pack_amount ("cost",
70 &cost)); 68 &p->cost));
71 GNUNET_assert ( 69 GNUNET_assert (
72 0 == 70 0 ==
73 json_array_append_new (method_arr, 71 json_array_append_new (method_arr,