From a29aadbc9018dc4e9a91a2d5dff28e1daeb6e562 Mon Sep 17 00:00:00 2001 From: Arif Alam Date: Thu, 7 Dec 2023 01:12:50 -0500 Subject: [PATCH] uspot: fix uam CHAP password and challenge Add missing last byte in uam CHAP password and challenge Fixes WIFI-13178 Signed-off-by: Arif Alam --- feeds/ucentral/uspot/src/radius.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feeds/ucentral/uspot/src/radius.c b/feeds/ucentral/uspot/src/radius.c index 186cc80c4..ea57c7bcb 100644 --- a/feeds/ucentral/uspot/src/radius.c +++ b/feeds/ucentral/uspot/src/radius.c @@ -181,7 +181,7 @@ static int cb_chap_passwd(void *p, size_t s, struct blob_attr *b) int len; assert(s >= 17); - len = str_to_hex(blobmsg_get_string(b), str+1, 16); + len = str_to_hex(blobmsg_get_string(b), str+1, 17); return len+1; } @@ -192,7 +192,7 @@ static int cb_chap_challenge(void *p, size_t s, struct blob_attr *b) int len; assert(s >= 16); - len = str_to_hex(blobmsg_get_string(b), str, 16); + len = str_to_hex(blobmsg_get_string(b), str, 17); return len; }