When a server-state line is parsed, a test is performed to be sure there is
enough but not too much fields. However the test is buggy. The bug was
introduced in the commit
ea2cdf55e ("MEDIUM: server: Don't introduce a new
server-state file version").
No backport needed.
/* if line is incomplete line, then ignore it.
* otherwise, update useful flags */
if (version == 1 &&
- arg < SRV_STATE_FILE_MIN_FIELDS_VERSION_1 &&
- arg > SRV_STATE_FILE_MAX_FIELDS_VERSION_1)
+ (arg < SRV_STATE_FILE_MIN_FIELDS_VERSION_1 ||
+ arg > SRV_STATE_FILE_MAX_FIELDS_VERSION_1))
params[0] = NULL;
}