diff options
author | Sam Hartman <hartmans@debian.org> | 2017-08-12 09:13:02 -0400 |
---|---|---|
committer | Sam Hartman <hartmans@debian.org> | 2017-08-12 09:18:39 -0400 |
commit | e9b1c537ff00eaf45bfc06cadcc440ac323f255d (patch) | |
tree | 3ab28997375d07d2837d209079971e520ffa0cac | |
parent | a610bd308c6aa1d8a423fbfeac0c440f093e7b55 (diff) |
memset the entire valuepair, not just the initial chunk
-rw-r--r-- | radius/valuepair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radius/valuepair.c b/radius/valuepair.c index 6277f7d..4ba33f6 100644 --- a/radius/valuepair.c +++ b/radius/valuepair.c @@ -38,7 +38,7 @@ void nr_vp_free(VALUE_PAIR **head) for (vp = *head; vp != NULL; vp = next) { next = vp->next; if (vp->da->flags.encrypt) { - memset(vp, 0, sizeof(vp)); + memset(vp, 0, sizeof(*vp)); } free(vp); } |