diff options
author | Luke Howard <lukeh@padl.com> | 2011-12-01 17:44:10 +1100 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-12-01 17:44:10 +1100 |
commit | b86f31fd4a8ee9394146d8da969c727de819df3b (patch) | |
tree | 1a6e5b72ea6fad61a50d9fc42638d8248cf7f8bf /lib/avp.c | |
parent | 42ec70d2b6c2a8a63250111e4a81b75ca554ddfa (diff) |
fix dangling reference to dictionary pointer
Diffstat (limited to 'lib/avp.c')
-rw-r--r-- | lib/avp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |