Skip to content

Commit 17359a1

Browse files
fix: IF_NOT_IN on multi-value TRUSTED_NAME fields suppresses all subsequent values
1 parent 3530a9c commit 17359a1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/features/generic_tx_parser/gtp_param_trusted_name.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,10 @@ bool format_param_trusted_name(const struct s_field *field) {
226226
break;
227227
case PARAM_VISIBILITY_IF_NOT_IN:
228228
// Field is displayed only if value is NOT in the constraint list
229-
ret = check_address_constraint(field, &values, i, addr);
230-
if (ret) {
229+
if (check_address_constraint(field, &values, i, addr)) {
231230
PRINTF("Warning: TRUSTED_NAME does match a IF_NOT_IN constraint!\n");
232-
// Skip displaying the field
233-
goto cleanup;
231+
// Skip displaying only this value, continue with remaining values
232+
continue;
234233
}
235234
to_be_displayed = true;
236235
break;

0 commit comments

Comments
 (0)