Skip to content

Commit

Permalink
Make a _copy_ of the attributes when copying them.
Browse files Browse the repository at this point in the history
Doh!

Closes RADSECPROXY-53.
  • Loading branch information
Linus Nordberg committed Sep 6, 2013
1 parent d413b14 commit 26c8061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes since 1.6.4
Bug fixes:
- Fix a crash bug introduced in 1.6.4. Fixes RADSECPROXY-53,
bugfix on 1.6.4.

2013-09-05 1.6.4
Bug fixes:
- Keeping Proxy-State attributes in all replies to clients
Expand Down
2 changes: 1 addition & 1 deletion radmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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;
}
Expand Down

0 comments on commit 26c8061

Please sign in to comment.