Skip to content

Commit

Permalink
Check return of fr_pair_list_copy (CID #1636884)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Dec 22, 2024
1 parent 05e7ae0 commit 2bb9558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/tls/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ static unlang_action_t tls_new_session_result(UNUSED rlm_rcode_t *p_result, UNUS
/*
* Copy control attributes back to the parent.
*/
fr_pair_list_copy(parent->control_ctx, &parent->control_pairs, &request->control_pairs);
if (fr_pair_list_copy(parent->control_ctx, &parent->control_pairs, &request->control_pairs) < 0) return UNLANG_ACTION_FAIL;

return UNLANG_ACTION_CALCULATE_RESULT;
}
Expand Down

0 comments on commit 2bb9558

Please sign in to comment.