Skip to content

Commit

Permalink
NetworkInterfaceHandler: also look at the authority and additional re…
Browse files Browse the repository at this point in the history
…cords
  • Loading branch information
tmds committed Dec 24, 2013
1 parent c0b25c4 commit ecc1230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tmds/MDns/NetworkInterfaceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void OnReceive(IAsyncResult ar)
_packetServiceInfos.Clear();
_packetHostAddresses.Clear();

for (int i = 0; i < header.AnswerCount; i++)
for (int i = 0; i < (header.AnswerCount + header.AuthorityCount + header.AdditionalCount); i++)
{
RecordHeader recordHeader = reader.ReadRecordHeader();
if ((recordHeader.Type == RecordType.A) || (recordHeader.Type == RecordType.AAAA)) // A or AAAA
Expand Down

0 comments on commit ecc1230

Please sign in to comment.