From: Arran Cudbard-Bell Date: Mon, 18 Feb 2013 19:14:39 +0000 (-0500) Subject: Set vp_strvalue to NULL if the pair is marked for xlat X-Git-Tag: release_3_0_0_beta1~1035 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ffafa2d38c504e0b91395812044143137c7ecdd;p=thirdparty%2Ffreeradius-server.git Set vp_strvalue to NULL if the pair is marked for xlat --- diff --git a/src/lib/valuepair.c b/src/lib/valuepair.c index 24eba99b57a..e1b148ec94f 100644 --- a/src/lib/valuepair.c +++ b/src/lib/valuepair.c @@ -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; }