summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-11-04 13:58:47 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-11-04 13:58:47 +0000
commitfa8499bed1e9ab3b8a14276943a49e6819c67724 (patch)
tree63f84eb107461cb08a1b7702bbb1e0668619f67e /radsecproxy.c
parent94bb92925c8afd0f426f2afdd3521516e9cbdc3b (diff)
fixed length of ttl attr
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@431 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index b611053..f063c60 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1616,6 +1616,7 @@ int addvendorattr(struct radmsg *msg, uint32_t vendor, struct tlv *attr) {
vendor = htonl(vendor);
memcpy(v, &vendor, 4);
tlv2buf(v + 4, attr);
+ v[5] += 2;
vattr = maketlv(RAD_Attr_Vendor_Specific, l, v);
if (vattr && radmsg_add(msg, vattr))
return 1;