summaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_redux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r--src/reducer/anastasis_api_redux.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c
index b66eec3..b9d18ab 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -2034,13 +2034,11 @@ ANASTASIS_reducer_lookup_salt (
const json_t *aps;
const json_t *cfg;
uint32_t http_status = 0;
- bool disabled = false;
+ const char *status;
bool no_salt;
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_bool ("disabled",
- &disabled),
- NULL),
+ GNUNET_JSON_spec_string ("status",
+ &status),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_uint32 ("http_status",
&http_status),
@@ -2075,7 +2073,8 @@ ANASTASIS_reducer_lookup_salt (
GNUNET_break_op (0);
return GNUNET_NO;
}
- if (disabled)
+ if (0 == strcmp (status,
+ "disabled"))
return GNUNET_NO;
if (no_salt)
return GNUNET_NO;