mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix: Use ADMIN_COMMAND_ERROR not -1
This commit is contained in:
parent
0af45ebf26
commit
6f2c6b8e84
@ -1348,7 +1348,7 @@ static void _handle_authentication_global(client_t *client, void *uri, auth_resu
|
|||||||
client->authstack = NULL;
|
client->authstack = NULL;
|
||||||
|
|
||||||
if (result != AUTH_NOMATCH &&
|
if (result != AUTH_NOMATCH &&
|
||||||
!(result == AUTH_OK && client->admin_command != -1 && acl_test_admin(client->acl, client->admin_command) == ACL_POLICY_DENY)) {
|
!(result == AUTH_OK && client->admin_command != ADMIN_COMMAND_ERROR && acl_test_admin(client->acl, client->admin_command) == ACL_POLICY_DENY)) {
|
||||||
_handle_authed_client(client, uri, result);
|
_handle_authed_client(client, uri, result);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1402,7 +1402,7 @@ static void _handle_authentication_mount_default(client_t *client, void *uri, au
|
|||||||
client->authstack = NULL;
|
client->authstack = NULL;
|
||||||
|
|
||||||
if (result != AUTH_NOMATCH &&
|
if (result != AUTH_NOMATCH &&
|
||||||
!(result == AUTH_OK && client->admin_command != -1 && acl_test_admin(client->acl, client->admin_command) == ACL_POLICY_DENY)) {
|
!(result == AUTH_OK && client->admin_command != ADMIN_COMMAND_ERROR && acl_test_admin(client->acl, client->admin_command) == ACL_POLICY_DENY)) {
|
||||||
_handle_authed_client(client, uri, result);
|
_handle_authed_client(client, uri, result);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user