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:
John Baldwin
2025-04-11 09:59:24 -04:00
parent 6527682ab7
commit e7611b7531
+1 -1
View File
@@ -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);