summaryrefslogtreecommitdiff
path: root/radmsg.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-08-28 13:48:49 +0200
committerLinus Nordberg <linus@nordberg.se>2013-09-06 13:36:12 +0200
commit89cf9f096689cc385ecdd86a3d6206d15e0aa005 (patch)
treed1fe4559f78fb6fcf380106cc21e06a2860f3fb6 /radmsg.c
parent48013d34d07686a3757e43424690b97b23b73bc0 (diff)
Make a _copy_ of the attributes when copying them.
Doh! Closes RADSECPROXY-53.
Diffstat (limited to 'radmsg.c')
-rw-r--r--radmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radmsg.c b/radmsg.c
index 0289bba..e95ea59 100644
--- a/radmsg.c
+++ b/radmsg.c
@@ -113,7 +113,7 @@ int radmsg_copy_attrs(struct radmsg *dst,
int n = 0;
for (node = list_first(list); node; node = list_next(node)) {
- if (radmsg_add(dst, (struct tlv *) node->data) != 1) {
+ if (radmsg_add(dst, copytlv((struct tlv *) node->data)) != 1) {
n = -n;
break;
}