Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
f6d269c8
Commit
f6d269c8
authored
Sep 20, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Actually destroy clients on if auth has release callback
parent
1b5572f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/auth.c
src/auth.c
+8
-0
No files found.
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
Markdown
is supported
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