Skip to content

Commit

Permalink
Correct expansion of LDAP attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Sep 21, 2023
1 parent f803b02 commit b618607
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/ldap/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,8 @@ int fr_ldap_map_expand(TALLOC_CTX *ctx, fr_ldap_map_exp_t *expanded, request_t *
expanded->attrs[total++] = attr;
}

if (generic_attr) expanded->attrs[expanded->count++] = generic_attr;
if (generic_attr) expanded->attrs[total++] = generic_attr;

expanded->attrs[expanded->count] = NULL;
expanded->attrs[total] = NULL;
expanded->count = total;
expanded->maps = maps;
Expand Down

0 comments on commit b618607

Please sign in to comment.