Skip to content

Commit

Permalink
Only FR_TYPE_STRUCT need sorted children
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Sep 24, 2024
1 parent 8e0c6d7 commit 29e1963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_perl/rlm_perl.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ static int pairadd_sv(TALLOC_CTX *ctx, request_t *request, fr_pair_list_t *vps,
}
hv = (HV *)SvRV(sv);
if (get_hv_content(vp, request, hv, &vp->vp_group, list_name, da, false) < 0) goto fail;
fr_pair_list_sort(&vp->vp_group, fr_pair_cmp_by_da);
if (vp->vp_type == FR_TYPE_STRUCT) fr_pair_list_sort(&vp->vp_group, fr_pair_cmp_by_da);
}
break;

Expand Down

0 comments on commit 29e1963

Please sign in to comment.