Skip to content

Commit

Permalink
Set vp->next to NULL on copy vp data
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 19, 2013
1 parent f564d88 commit 291f0e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/valuepair.c
Expand Up @@ -401,6 +401,8 @@ VALUE_PAIR *paircopyvpdata(const DICT_ATTR *da, const VALUE_PAIR *vp)
memcpy(n->vp_tlv, vp->vp_tlv, n->length);
}

n->next = NULL;

return n;
}

Expand Down

0 comments on commit 291f0e1

Please sign in to comment.