Index: head/usr.sbin/ctld/uclparse.c =================================================================== --- head/usr.sbin/ctld/uclparse.c +++ head/usr.sbin/ctld/uclparse.c @@ -619,6 +619,8 @@ const char *key; target = target_new(conf, name); + if (target == NULL) + return (1); while ((obj = ucl_iterate_object(top, &it, true))) { key = ucl_object_key(obj); @@ -807,6 +809,8 @@ const char *key; lun = lun_new(conf, name); + if (lun == NULL) + return (1); while ((obj = ucl_iterate_object(top, &it, true))) { key = ucl_object_key(obj);