Skip to content

Commit

Permalink
Use box clearing function instead of direct assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 24, 2020
1 parent 8d376ad commit 7c3b14f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/util/pair_legacy.c
Expand Up @@ -295,8 +295,7 @@ VALUE_PAIR *fr_pair_make(TALLOC_CTX *ctx, fr_dict_t const *dict, VALUE_PAIR **vp
switch (vp->op) {
case T_OP_CMP_TRUE:
case T_OP_CMP_FALSE:
vp->vp_strvalue = NULL;
vp->vp_length = 0;
fr_value_box_clear(&vp->data);
value = NULL; /* ignore it! */
break;

Expand Down

0 comments on commit 7c3b14f

Please sign in to comment.