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
+5
View File
@@ -1170,6 +1170,11 @@ bool AdminCache::GetMethodIndex(const char *name, unsigned int *_index)
bool AdminCache::BindAdminIdentity(AdminId id, const char *auth, const char *ident)
{
if (ident == NULL || ident[0] == '\0')
{
return false;
}
AdminUser *pUser = (AdminUser *)m_pMemory->GetAddress(id);
if (!pUser || pUser->magic != USR_MAGIC_SET)
{