Coverity looks at control flow in xlat_purify_list() and judges that
success is guaranteed to be false by the time it's checked. We think
that moving the initialization before the unlang_xlat_push_node()
call, which passes it &success, will function the same while
reassuring coverity.
* evaluate the entire thing to purify it.
*/
fr_assert(node->flags.pure);
-
fr_value_box_list_init(&list);
+ success = false;
if (unlang_xlat_push_node(head, &success, &list, request, node) < 0) {
return -1;
}
/*
* Hope to god it doesn't yield. :)
*/
- success = false;
- (void) unlang_interpret_synchronous(NULL, request);
+ (void) unlang_interpret_synchronous(NULL, request);
if (!success) return -1;
/*