]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix assertion failure when using -X none and lock-file in configuration
authorAram Sargsyan <aram@isc.org>
Thu, 26 Oct 2023 12:21:57 +0000 (12:21 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 26 Oct 2023 12:21:57 +0000 (12:21 +0000)
commitfc2dd0939002b1edf7ced4b653c9d6640576a213
tree61f556856c4d7588f86f4b03233a47212d13941d
parentc6edfa398ce12b783d29a6c519553e12d0b0829a
Fix assertion failure when using -X none and lock-file in configuration

When 'lock-file <lockfile>' is used in configuration at the same time
as using '-X none' in 'named' invocation, there is an invalid
logic that would lead to a isc_mem_strdup() call on a NULL value.

Also, contradicting to ARM, 'lock-file none' is overriding the '-X'
argument.

Fix the overall logic, and make sure that the '-X' takes precedence to
'lock-file'.
bin/named/server.c