Call MSExchangeHostname on SOGoDNSource only

Fixes #2418
pull/13/head
Jean Raby 2013-09-13 11:19:44 -04:00
parent de8bf64c70
commit 906985c1f3
1 changed files with 3 additions and 1 deletions

View File

@ -294,7 +294,9 @@
contact = [contacts lastObject];
email = [contact valueForKey: @"c_email"];
source = [contact objectForKey: @"source"];
if ([email length] && [source MSExchangeHostname])
if ([email length]
&& [source conformsToProtocol: @protocol (SOGoDNSource)]
&& [source MSExchangeHostname])
{
exchangeFreeBusy = [[MSExchangeFreeBusy alloc] init];
[exchangeFreeBusy autorelease];