Skip to content

Commit

Permalink
Correct DHCP attribute sorting comparison function
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Jun 21, 2024
1 parent ec73e1a commit 6f32c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/dhcpv4/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int8_t fr_dhcpv4_attr_cmp(void const *a, void const *b)
a_82 = fr_dict_attr_common_parent(dhcp_option_82, my_a->da, true);
b_82 = fr_dict_attr_common_parent(dhcp_option_82, my_b->da, true);
if (a_82 && !b_82) return +1;
if (!a_82 && !b_82) return -1;
if (!a_82 && b_82) return -1;

return fr_pair_cmp_by_parent_num(my_a, my_b);
}
Expand Down

0 comments on commit 6f32c33

Please sign in to comment.