Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144548130
D49071.1775361229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49071.1775361229.diff
View Options
diff --git a/usr.sbin/ctld/uclparse.c b/usr.sbin/ctld/uclparse.c
--- a/usr.sbin/ctld/uclparse.c
+++ b/usr.sbin/ctld/uclparse.c
@@ -336,7 +336,9 @@
if (obj->type == UCL_OBJECT) {
iter = NULL;
while ((child = ucl_iterate_object(obj, &iter, true))) {
- uclparse_auth_group(ucl_object_key(child), child);
+ if (!uclparse_auth_group(
+ ucl_object_key(child), child))
+ return (false);
}
} else {
log_warnx("\"auth-group\" section is not an object");
@@ -348,7 +350,9 @@
if (obj->type == UCL_OBJECT) {
iter = NULL;
while ((child = ucl_iterate_object(obj, &iter, true))) {
- uclparse_portal_group(ucl_object_key(child), child);
+ if (!uclparse_portal_group(
+ ucl_object_key(child), child))
+ return (false);
}
} else {
log_warnx("\"portal-group\" section is not an object");
@@ -360,7 +364,9 @@
if (obj->type == UCL_OBJECT) {
iter = NULL;
while ((child = ucl_iterate_object(obj, &iter, true))) {
- uclparse_lun(ucl_object_key(child), child);
+ if (!uclparse_lun(ucl_object_key(child),
+ child))
+ return (false);
}
} else {
log_warnx("\"lun\" section is not an object");
@@ -379,8 +385,9 @@
iter = NULL;
while ((child = ucl_iterate_object(obj, &iter,
true))) {
- uclparse_target(ucl_object_key(child),
- child);
+ if (!uclparse_target(
+ ucl_object_key(child), child))
+ return (false);
}
} else {
log_warnx("\"target\" section is not an object");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 3:53 AM (13 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28264542
Default Alt Text
D49071.1775361229.diff (1 KB)
Attached To
Mode
D49071: ctld: Fail UCL configurations with a nested error
Attached
Detach File
Event Timeline
Log In to Comment