Skip to content

Commit 9588d7a

Browse files
committed
Also consider authoritative entries when listening
Don't skip over authoritative entries when receiving entries, otherwise we'll never send A or AAAA records.
1 parent dd8643a commit 9588d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ mdns_listen_probe_network(const struct mdns_ctx *ctx, const char *const names[],
756756
continue;
757757
}
758758

759-
if (ahdr.num_ans_rr + ahdr.num_add_rr == 0)
759+
if (ahdr.num_ans_rr + ahdr.num_auth_rr + ahdr.num_add_rr == 0)
760760
{
761761
mdns_free(entries);
762762
continue;

0 commit comments

Comments
 (0)