projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ec70d
)
fix dangling reference to dictionary pointer
author
Luke Howard
<lukeh@padl.com>
Thu, 1 Dec 2011 06:44:10 +0000
(17:44 +1100)
committer
Luke Howard
<lukeh@padl.com>
Thu, 1 Dec 2011 06:44:10 +0000
(17:44 +1100)
lib/avp.c
patch
|
blob
|
history
diff --git
a/lib/avp.c
b/lib/avp.c
index
6f30d4c
..
bdc6216
100644
(file)
--- a/
lib/avp.c
+++ b/
lib/avp.c
@@
-106,7
+106,10
@@
rs_avp_dup (rs_const_avp *vp)
{
rs_avp *vp2;
- vp2 = nr_vp_alloc (vp->da);
+ if (vp->da->flags.unknown)
+ vp2 = nr_vp_alloc_raw (vp->da->attr, vp->da->vendor);
+ else
+ vp2 = nr_vp_alloc (vp->da);
if (vp2 == NULL)
return NULL;