]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix assertion failure when using -X and lock-file in configuration
authorOndřej Surý <ondrej@isc.org>
Thu, 26 Oct 2023 08:54:28 +0000 (10:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 26 Oct 2023 11:59:46 +0000 (13:59 +0200)
commitd9fc95f842a90112a4a37ce3df2689525a2ce021
tree5e8b2c3ab9e1a543f0cf140aa119efbe63fd8e47
parentbf330dc3cc910321e95c191e576b4a88a7ecd714
Fix assertion failure when using -X and lock-file in configuration

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

Skip the second allocation if `lock-file` is being used in
configuration, so the <lockfile2> is used only single time.

(cherry picked from commit 4f68def5e966f0d359833b64837e25f0cb60fb6a)
bin/named/server.c