Fix fallback to A/AAAA in case of missing SRV

This commit is contained in:
Jonathan Schleifer 2020-01-04 01:59:21 +01:00
parent f84d541eae
commit c49e9a7375
No known key found for this signature in database
GPG key ID: 79D21189A2D4708D

View file

@ -302,13 +302,8 @@
{ {
OFMutableArray *records = [OFMutableArray array]; OFMutableArray *records = [OFMutableArray array];
if (exception != nil) { if (exception != nil)
[_delegates response = nil;
broadcastSelector: @selector(connection:didThrowException:)
withObject: self
withObject: exception];
return;
}
for (OFDNSResourceRecord *record in for (OFDNSResourceRecord *record in
[response.answerRecords objectForKey: domainName]) [response.answerRecords objectForKey: domainName])