}
talloc_free(vp_to_free);
- goto next;
+ return 0;
leaf:
/*
return -1;
}
-next:
- state->state = UNLANG_EDIT_INIT;
- TALLOC_FREE(state->lhs_free);
- state->lhs_parent = state->lhs_vp = NULL;
-
return 0;
}
* parent list.
*/
if (tmpl_find_vp(&state->lhs_vp, request, state->lhs) < 0) {
+ if (map->op == T_OP_EQ) goto next;
+
REDEBUG("Failed to find %s", state->lhs->name);
goto error;
}
case UNLANG_EDIT_CHECK_RHS:
check_rhs:
if (apply_edits(request, state, map) < 0) goto error;
+
+
+ next:
+ state->state = UNLANG_EDIT_INIT;
+ TALLOC_FREE(state->lhs_free);
+ state->lhs_parent = state->lhs_vp = NULL;
break;
}
+
} /* loop over the map */
/*