ctld: Fix sign bug validating kernel ports when reloading config
When I switched new_pports_from_conf to return bool instead of an
inverted int, I missed updating the call after reloading the config
file due to SIGHUP.
Fixes: 450a84c292 ("ctld: Some bool-related cleanups")
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D49641
This commit is contained in:
@@ -2601,7 +2601,7 @@ main(int argc, char **argv)
|
||||
if (tmpconf == NULL) {
|
||||
log_warnx("configuration error, "
|
||||
"continuing with old configuration");
|
||||
} else if (new_pports_from_conf(tmpconf, &kports)) {
|
||||
} else if (!new_pports_from_conf(tmpconf, &kports)) {
|
||||
log_warnx("Error associating physical ports, "
|
||||
"continuing with old configuration");
|
||||
conf_delete(tmpconf);
|
||||
|
||||
Reference in New Issue
Block a user