Prevented blank/empty admins from being created. (Bug 3431 r=dvander)

This commit is contained in:
Liam
2008-12-28 23:45:18 -05:00
parent 1577fab93a
commit 7705e88b57
3 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -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);
}
}
}