Set the default length for the attributes
authorAlan T. DeKok <aland@freeradius.org>
Sat, 18 Jan 2014 20:58:28 +0000 (15:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 18 Jan 2014 20:58:28 +0000 (15:58 -0500)
src/lib/valuepair.c

index d1d1fca..ac955ad 100644 (file)
@@ -109,6 +109,8 @@ VALUE_PAIR *pairalloc(TALLOC_CTX *ctx, DICT_ATTR const *da)
        vp->op = T_OP_EQ;
        vp->type = VT_NONE;
 
+       vp->length = da->flags.length;
+
        talloc_set_destructor(vp, _pairfree);
 
        return vp;