resolve/mdns: do not append packets without records
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 11:53:39 +0000 (20:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 12:38:22 +0000 (21:38 +0900)
commit6cfa4fc4ce8c72936c25a5f5ac55d2cb7c9cf337
treef77714b8ca27a144b8ddc4483059fe1a4835e631
parent7f0dbde467bbfb89be7c29c1f5f4bbdff0dabda1
resolve/mdns: do not append packets without records

Previously, if we have only max_rr cached entries, then an empty packet
is appended.

Prompted by #29168.
src/resolve/resolved-dns-cache.c