]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clang: shut up and stop being so stupid
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 Dec 2021 17:28:58 +0000 (12:28 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 Dec 2021 17:28:58 +0000 (12:28 -0500)
src/lib/unlang/edit.c

index bd0f3cd683257b6041c55462232f0dea74847277..d493aaf6c89e79aa27e701f4e69e8182f0f5e40b 100644 (file)
@@ -239,6 +239,7 @@ static int apply_edits(request_t *request, unlang_frame_state_edit_t *state, map
        fr_value_box_t const *rhs_box = NULL;
 
        fr_assert(state->rhs.vpt != NULL);
+       fr_assert(state->lhs.vp != NULL);
 
        /*
         *      Get the resulting value box.
@@ -497,6 +498,8 @@ static unlang_action_t process_edit(rlm_rcode_t *p_result, request_t *request, u
                        goto check_rhs;
 
                case UNLANG_EDIT_EXPANDED_RHS:
+                       fr_assert(state->lhs.vp != NULL);
+
                        if (templatize_rhs(state, &state->rhs, state->lhs.vp, request) < 0) goto error;
 
                        state->state = UNLANG_EDIT_CHECK_RHS;