When the server state is loaded from a server-state file, there is no reason
to set an unconfigured check port with the server port. Because by default,
if the check port is not set, the server's one is used. Thus we can remove
this useless assignment. It is mandatory for next improvements.
goto out;
}
- /* configure check.port accordingly */
- if ((srv->check.state & CHK_ST_CONFIGURED) &&
- !(srv->flags & SRV_F_CHECKPORT))
- srv->check.port = port;
-
/* Unset SRV_F_MAPPORTS for SRV records.
* SRV_F_MAPPORTS is unfortunately set by parse_server()
* because no ports are provided in the configuration file.