Commit bb2ba6e8 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Avoided segfault if clear_auth() is closed with auth->state == NULL

parent d0b23fb8
......@@ -64,6 +64,9 @@ static auth_result static_auth(auth_client *auth_user)
static void clear_auth (auth_t *auth)
{
auth_static_t *auth_info = auth->state;
if (!auth_info)
return;
free(auth_info->username);
free(auth_info->password);
free(auth_info->arg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment