From 89cf9f096689cc385ecdd86a3d6206d15e0aa005 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 28 Aug 2013 13:48:49 +0200 Subject: Make a _copy_ of the attributes when copying them. Doh! Closes RADSECPROXY-53. --- radmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1