]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-rr.c
resolved: remove inappropriate assert()
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Nov 2022 17:42:08 +0000 (18:42 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 24 Nov 2022 22:49:04 +0000 (07:49 +0900)
commitfb896517aeecc2a8ec16586a34a0249606eb9f66
tree5892e1d714f49b2125cc659ad71ee1a1a80f62d1
parent9af93d7cabddbdd754f164b0ba331b884688432d
resolved: remove inappropriate assert()

A NULL Bitmap object is by all our code considered identical to an empty
bitmap. Hence let's remove the entirely unnecessary assert().

The assert() can be triggered if debug monitoring is used an an empty
NSEC or NSEC3 RR is included in an answer resolved returns.

it's not really a security issue since enabling debug monitoring is a
manual step requiring root privileges, that is off by default. Moreover,
it's a "clean" assert(), i.e. the worst that happens is tha a coredump
is generated and resolved restarted.

Fixes: #25449
src/resolve/resolved-dns-rr.c