diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-28 11:42:09 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-28 11:44:57 -0300 |
commit | f9121a10a59923d02e2b6a6e64299159599ef5e5 (patch) | |
tree | ad264d49090a7c68cb677199d0dbdee4aa768452 | |
parent | 7f8b3a0ca1740916b3511692d566b7e70a685253 (diff) | |
download | anastasis-gtk-f9121a10a59923d02e2b6a6e64299159599ef5e5.tar.gz anastasis-gtk-f9121a10a59923d02e2b6a6e64299159599ef5e5.tar.bz2 anastasis-gtk-f9121a10a59923d02e2b6a6e64299159599ef5e5.zip |
fix: clicking into a policy to edit crash the app
-rw-r--r-- | src/anastasis/anastasis-gtk_pe-edit-policy.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/anastasis/anastasis-gtk_pe-edit-policy.c b/src/anastasis/anastasis-gtk_pe-edit-policy.c index 6803cc2..eece3ee 100644 --- a/src/anastasis/anastasis-gtk_pe-edit-policy.c +++ b/src/anastasis/anastasis-gtk_pe-edit-policy.c @@ -278,6 +278,17 @@ ap_matches (const char *type, size_t index; json_t *method; + const char *status; + + status = json_string_value (json_object_get (ap, + "status")); + + if (0 != strcasecmp (status, + "ok")) + { + return false; + } + methods = json_object_get (ap, "methods"); GNUNET_break (NULL != methods); |