knotd segfaults when you turn globally disable DNSSEC
Scenario:
- Create config with something like this:
zones {
dnssec-keydir "foobar";
dnssec-enable on;
[...]
}
- Issue
knotc reload
Lot of errors about not existing keys, etc.
- Edit config and change it to:
zones {
dnssec-keydir "foobar";
dnssec-enable off;
[...]
}
- Issue:
knotc reload
and you get:
Oct 30 09:41:58 pagan kernel: [28227584.744378] knotd[7167]: segfault at 25 ip 0000000000406edd sp 00007fff3a498050 error 4 in knotd[400000+82000]
# addr2line -e/usr/lib/debug/.build-id/f3/17eccb33666a5e9a95a288599a18f73fe292e6.debug 0000000000406edd
/home/ondrej/Projects/pkg-debian/build-area/knot-1.4.0~beta/src/knot/conf/conf.c:912