core/AdminCache.cpp
changeset 2490 5701b09b3d19
parent 2420 8b384e375877
child 2491 f16ab6fc6855
     1.1 --- a/core/AdminCache.cpp	Sun Dec 28 19:59:40 2008 -0500
     1.2 +++ b/core/AdminCache.cpp	Sun Dec 28 23:45:18 2008 -0500
     1.3 @@ -1170,6 +1170,11 @@
     1.4  
     1.5  bool AdminCache::BindAdminIdentity(AdminId id, const char *auth, const char *ident)
     1.6  {
     1.7 +	if (ident == NULL || ident[0] == '\0')
     1.8 +	{
     1.9 +		return false;
    1.10 +	}
    1.11 +
    1.12  	AdminUser *pUser = (AdminUser *)m_pMemory->GetAddress(id);
    1.13  	if (!pUser || pUser->magic != USR_MAGIC_SET)
    1.14  	{