Set vp_strvalue to NULL if the pair is marked for xlat
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 18 Feb 2013 19:14:39 +0000 (14:14 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 18 Feb 2013 19:14:54 +0000 (14:14 -0500)
src/lib/valuepair.c

index 24eba99..e1b148e 100644 (file)
@@ -1742,6 +1742,9 @@ int pairmark_xlat(VALUE_PAIR *vp, const char *value)
        
        vp->type = VT_XLAT;
        vp->value.xlat = raw;
+       
+       vp->vp_strvalue[0] = '\0';
+       vp->length = 0;
 
        return 0;        
 }