Fix a crasher

pull/86/head
Ludovic Marcotte 2015-05-22 13:47:48 -04:00
parent d6ab7582e5
commit 2ae5f342da
1 changed files with 2 additions and 2 deletions

View File

@ -496,6 +496,8 @@ static Class NSNullK;
dd = [SOGoSystemDefaults sharedSystemDefaults];
username = _login;
if (*_domain)
{
if ([_login rangeOfString: @"@"].location == NSNotFound)
@ -505,8 +507,6 @@ static Class NSNullK;
{
NSRange r;
username = _login;
// We try to extract the domain in use in order to avoid pounding all the authentication
// sources if SOGoLoginDomains isn't specified. This is also true if the user is
// using DAV or EAS.