Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
f6d269c8
Commit
f6d269c8
authored
Sep 20, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Actually destroy clients on if auth has release callback
parent
1b5572f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/auth.c
View file @
f6d269c8
...
...
@@ -486,6 +486,13 @@ static void auth_add_client(auth_t *auth, client_t *client, void (*on_no_match)(
queue_auth_client
(
auth_user
);
}
static
void
__auth_on_result_destroy_client
(
client_t
*
client
,
void
*
userdata
,
auth_result
result
)
{
(
void
)
userdata
,
(
void
)
result
;
client_destroy
(
client
);
}
/* determine whether we need to process this client further. This
* involves any auth exit, typically for external auth servers.
*/
...
...
@@ -496,6 +503,7 @@ int auth_release_client (client_t *client) {
if
(
client
->
auth
&&
client
->
auth
->
release_client
)
{
auth_client
*
auth_user
=
auth_client_setup
(
client
);
auth_user
->
process
=
auth_remove_client
;
auth_user
->
on_result
=
__auth_on_result_destroy_client
;
queue_auth_client
(
auth_user
);
return
1
;
}
else
if
(
client
->
auth
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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