Set vp->next to NULL on copy vp data
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 Feb 2013 19:14:33 +0000 (14:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 19 Feb 2013 19:14:33 +0000 (14:14 -0500)
src/lib/valuepair.c

index e1b148e..ab90ec2 100644 (file)
@@ -401,6 +401,8 @@ VALUE_PAIR *paircopyvpdata(const DICT_ATTR *da, const VALUE_PAIR *vp)
                memcpy(n->vp_tlv, vp->vp_tlv, n->length);
        }
        
+       n->next = NULL;
+
        return n;
 }