summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-04-29 21:17:31 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2024-04-29 23:24:58 +0200
commit4b043047132de0b3d90619d538f103af6153fa5a (patch)
tree88dcb755a3071419262d9da5be87bf91e7976936 /LICENSES
parent5ee2b6fe57857ca479f86a778811ecb3230e3e83 (diff)
downloadopenwrt-master.tar.gz
openwrt-master.tar.bz2
openwrt-master.zip
procd: make mDNS TXT record parsing more solidHEADmastermain
mDNS broadcast can't accept empty TXT record and would fail registration. Current procd_add_mdns_service checks only if the first passed arg is empty but don't make any verification on the other args permittins insertion of empty values in TXT record. Example: procd_add_mdns "blah" \ "tcp" "50" \ "1" \ "" \ "3" Produce: { "blah_50": { "service": "_blah._tcp.local", "port": 50, "txt": [ "1", "", "3" ] } } The middle empty TXT record should never be included as it's empty. This can happen with scripts that make fragile parsing and include variables even if they are empty. Prevent this and make the TXT record more solid by checking every provided TXT record and include only the non-empty ones. The fixed JSON is the following: { "blah_50": { "service": "_blah._tcp.local", "port": 50, "txt": [ "1", "3" ] } } Fixes: b0d9dcf84dd0 ("procd: update to latest git HEAD") Reported-by: Paul Donald <newtwen@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15331 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions