resolve/mdns: split out mdns_make_dummy_packet()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 11:55:50 +0000 (20:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 12:38:54 +0000 (21:38 +0900)
commit7645e5a8133be15c471abf172af601b83a7f9cf4
treebcba583cef346e3a2dbdb8b7aee8aedad1986c26
parent6cfa4fc4ce8c72936c25a5f5ac55d2cb7c9cf337
resolve/mdns: split out mdns_make_dummy_packet()

Then, this fixes the following issues:
- if dns_packet_append_zone() for other transaction is failed with
  EMSGSIZE, the previously added key was not removed,
- if dns_transaction_prepare() for other transaction returns 0, then
  we restated the loop without dropping previously appended keys, which
  might not be necessary any more.
src/resolve/resolved-dns-transaction.c