Skip to content

[9.18] Fix assertion failure when using -X and lock-file in configuration

When 'lock-file ' 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 value.

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

(cherry picked from commit 4f68def5)

Closes #4386 (closed)

Backport of !8427 (merged)

Edited by Ondřej Surý

Merge request reports