resolve: mdns_packet_extract_matching_rrs() may return 0

Fixes the following assertion:
---
Assertion 'r > 0' failed at src/resolve/resolved-mdns.c:180, function mdns_do_tiebreak(). Aborting.
---
This commit is contained in:
Yu Watanabe
2022-07-09 05:20:09 +09:00
parent d3887b2b48
commit f2605af1f2
-2
View File
@@ -177,8 +177,6 @@ static int mdns_do_tiebreak(DnsResourceKey *key, DnsAnswer *answer, DnsPacket *p
if (r < 0)
return r;
assert(r > 0);
if (proposed_rrs_cmp(remote, r, our, size) > 0)
return 1;