Prevented blank/empty admins from being created. (Bug 3431 r=dvander)
This commit is contained in:
@@ -216,7 +216,8 @@ ReadAdminLine(const String:line[])
|
||||
if (!BindAdminIdentity(admin, auth_method, auth[auth_offset]))
|
||||
{
|
||||
/* We should never reach here */
|
||||
ParseError("Failed to bind identity %s (method %s)", auth[auth_offset], auth_method);
|
||||
RemoveAdmin(admin);
|
||||
ParseError("Failed to bind identity %s (method %s)", auth[auth_offset], auth_method);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user