Commit 4f83a872 authored by John Hodge's avatar John Hodge
Browse files

Server - Only allow AUTHCARD by root

parent 209aad64
......@@ -664,10 +664,10 @@ void Server_Cmd_AUTHCARD(tClient* Client, char *Args)
}
// Check if trusted
if( !Client->bTrustedHost )
if( Client->UID != 0 )
{
if(giDebugLevel)
Debug(Client, "Untrusted client attempting to AUTHCARD");
Debug(Client, "Attempting to use AUTHCARD as non-root");
sendf(Client->Socket, "401 Untrusted\n");
return ;
}
......
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