Call MSExchangeHostname on SOGoDNSource only

Fixes #2418
This commit is contained in:
Jean Raby
2013-09-13 11:19:44 -04:00
parent de8bf64c70
commit 906985c1f3
+3 -1
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];