Skip to content

Commit

Permalink
correct check
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 10, 2025
1 parent d5f8ed5 commit 7e6c1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/dict_tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ static int dict_attr_allow_dup(fr_dict_attr_t const *da)
/*
* Not a duplicate...
*/
if (!dup_name || dup_num) return 1;
if (!dup_name && !dup_num) return 1;

found = dup_name ? dup_name : dup_num;

Expand Down

0 comments on commit 7e6c1e4

Please sign in to comment.