diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-05-18 15:36:33 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-05-18 15:36:33 +0200 |
commit | 3daee0eccdcf25c2a4a053843d68c794bb72270f (patch) | |
tree | e3a7d52664446e6954a8b1bfa42270d0fb68488b /src/authorization | |
parent | 0f2a0a611ba68e4cc437d760afe733ebd0c3863b (diff) | |
download | anastasis-3daee0eccdcf25c2a4a053843d68c794bb72270f.tar.gz anastasis-3daee0eccdcf25c2a4a053843d68c794bb72270f.tar.bz2 anastasis-3daee0eccdcf25c2a4a053843d68c794bb72270f.zip |
rename .success to .ok for consistency
Diffstat (limited to 'src/authorization')
3 files changed, 15 insertions, 6 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_email.c b/src/authorization/anastasis_authorization_plugin_email.c index da08360..7fc97e7 100644 --- a/src/authorization/anastasis_authorization_plugin_email.c +++ b/src/authorization/anastasis_authorization_plugin_email.c @@ -296,9 +296,12 @@ email_done_cb (void *cls, { struct ANASTASIS_AUTHORIZATION_State *as = cls; - GNUNET_OS_process_destroy (ac->child); - as->child = NULL; as->cwh = NULL; + if (NULL != as->child) + { + GNUNET_OS_process_destroy (as->child); + as->child = NULL; + } as->pst = type; as->exit_code = exit_code; MHD_resume_connection (as->connection); diff --git a/src/authorization/anastasis_authorization_plugin_post.c b/src/authorization/anastasis_authorization_plugin_post.c index 87ed9d7..9410b58 100644 --- a/src/authorization/anastasis_authorization_plugin_post.c +++ b/src/authorization/anastasis_authorization_plugin_post.c @@ -334,9 +334,12 @@ post_done_cb (void *cls, { struct ANASTASIS_AUTHORIZATION_State *as = cls; - GNUNET_OS_process_destroy (ac->child); - as->child = NULL; as->cwh = NULL; + if (NULL != as->child) + { + GNUNET_OS_process_destroy (as->child); + as->child = NULL; + } as->pst = type; as->exit_code = exit_code; MHD_resume_connection (as->connection); diff --git a/src/authorization/anastasis_authorization_plugin_sms.c b/src/authorization/anastasis_authorization_plugin_sms.c index 7d8a2ca..51457b6 100644 --- a/src/authorization/anastasis_authorization_plugin_sms.c +++ b/src/authorization/anastasis_authorization_plugin_sms.c @@ -295,9 +295,12 @@ sms_done_cb (void *cls, { struct ANASTASIS_AUTHORIZATION_State *as = cls; - GNUNET_OS_process_destroy (ac->child); - as->child = NULL; as->cwh = NULL; + if (NULL != as->child) + { + GNUNET_OS_process_destroy (as->child); + as->child = NULL; + } as->pst = type; as->exit_code = exit_code; MHD_resume_connection (as->connection); |