From ebc4fd6f4c062969fec3095023416f59ee0bc574 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 15 Sep 2023 10:05:46 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RADIUS_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RADIUS_helpers.h b/src/RADIUS_helpers.h index 71897555..86845945 100644 --- a/src/RADIUS_helpers.h +++ b/src/RADIUS_helpers.h @@ -982,7 +982,7 @@ namespace OpenWifi::RADIUS { inline void AddAttribute(unsigned char attr, uint8_t len, const unsigned char *data) { P_.attributes[AttributesLen_++] = attr; - P_.attributes[AttributesLen_++] = len; + P_.attributes[AttributesLen_++] = len+2; memcpy(&P_.attributes[AttributesLen_], data, len); AttributesLen_ += len; }