Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
spr0cketeer
Icecast-Server
Commits
bb2ba6e8
Commit
bb2ba6e8
authored
Sep 14, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Avoided segfault if clear_auth() is closed with auth->state == NULL
parent
d0b23fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/auth_static.c
View file @
bb2ba6e8
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment