aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2025-02-12 19:26:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-01-27 18:15:56 +0000
commit67f12d18252a146439df723e5feb9ed3356f095b (patch)
tree5876ae7cdad0e09ef847f94da927f4414b90e629
parentfb77f80ccae154704a4c60e8be2e4a127020c14e (diff)
ctld: Fix the isns-period and isns-timeout keywords in the UCL parser
These keywords were setting the wrong configuration value (connection timeout). Reviewed by: asomers Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D48930 (cherry picked from commit 64905b38b1aeeaa9faeb90192b762efc1c2216ee)
-rw-r--r--usr.sbin/ctld/uclparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ctld/uclparse.c b/usr.sbin/ctld/uclparse.c
index ab34096699c8..bd3c90283f6d 100644
--- a/usr.sbin/ctld/uclparse.c
+++ b/usr.sbin/ctld/uclparse.c
@@ -310,7 +310,7 @@ uclparse_toplevel(const ucl_object_t *top)
if (!strcmp(key, "isns-period")) {
if (obj->type == UCL_INT)
- conf->conf_timeout = ucl_object_toint(obj);
+ conf->conf_isns_period = ucl_object_toint(obj);
else {
log_warnx("\"isns-period\" property value is not integer");
return (false);
@@ -319,7 +319,7 @@ uclparse_toplevel(const ucl_object_t *top)
if (!strcmp(key, "isns-timeout")) {
if (obj->type == UCL_INT)
- conf->conf_timeout = ucl_object_toint(obj);
+ conf->conf_isns_timeout = ucl_object_toint(obj);
else {
log_warnx("\"isns-timeout\" property value is not integer");
return (false);