It is obvious that the '!cfg_obj_asstring(obj)' check should be
'cfg_obj_asstring(obj)' instead, because it is an AND logic chain
which further uses 'obj' as a string.
Fix the error.
(cherry picked from commit
bc891e749fe361caeb7d7ca5208ebf1e1f4f02ac)
(void)named_config_get(maps, "lock-file", &obj);
if (!first_time) {
- if (obj != NULL && !cfg_obj_isstring(obj) &&
+ if (obj != NULL && cfg_obj_isstring(obj) &&
server->lockfile != NULL &&
strcmp(cfg_obj_asstring(obj), server->lockfile) != 0)
{