aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_pe-edit-policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_pe-edit-policy.c')
-rw-r--r--src/anastasis/anastasis-gtk_pe-edit-policy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk_pe-edit-policy.c b/src/anastasis/anastasis-gtk_pe-edit-policy.c
index eece3ee..2647680 100644
--- a/src/anastasis/anastasis-gtk_pe-edit-policy.c
+++ b/src/anastasis/anastasis-gtk_pe-edit-policy.c
@@ -277,18 +277,16 @@ ap_matches (const char *type,
json_t *methods;
size_t index;
json_t *method;
-
const char *status;
status = json_string_value (json_object_get (ap,
- "status"));
-
+ "status"));
if (0 != strcasecmp (status,
"ok"))
{
+ /* provider is down, cannot proceed */
return false;
}
-
methods = json_object_get (ap,
"methods");
GNUNET_break (NULL != methods);