-@@ -433,17 +489,23 @@
- }
-
- err = uci_lookup_ptr(ctx, &ptr, NULL, false);
-- if (err)
-+ if (err) {
- goto error;
-+ }
-
-- if ((ptr.s == NULL) || (ptr.value == NULL)) {
-+ /* TODO: IMPROVE CHECK
-+ * unable to create named section with original check
-+ * therefore temporarily added: && (nargs != 4)
-+ */
-+ if (((ptr.s == NULL) && (nargs != 4)) || (ptr.value == NULL)) {
- err = UCI_ERR_INVAL;
- goto error;
- }
-
- err = uci_set(ctx, &ptr);
-- if (err)
-+ if (err) {
- goto error;
-+ }
-
- if (istable) {
- for (i = 2; i <= lua_objlen(L, nargs); i++) {
-@@ -458,7 +520,7 @@