projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc3995c
)
Set the default length for the attributes
author
Alan T. DeKok
<aland@freeradius.org>
Sat, 18 Jan 2014 20:58:28 +0000
(15:58 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sat, 18 Jan 2014 20:58:28 +0000
(15:58 -0500)
src/lib/valuepair.c
patch
|
blob
|
history
diff --git
a/src/lib/valuepair.c
b/src/lib/valuepair.c
index
d1d1fca
..
ac955ad
100644
(file)
--- a/
src/lib/valuepair.c
+++ b/
src/lib/valuepair.c
@@
-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;