Skip to contentSkip to conversation

mesh: Correct length test in agent.c:request_ascii

PATCH Applied [email protected] 2 participants 2 messages Nov 18, 2017 – Nov 19, 2017 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesh: Correct length test in agent.c:request_ascii

From: Steve Brown <[email protected]>

---
 mesh/agent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mesh/agent.c +1 -1
index c789b0c1a..efb8937d9 100644
@@ -137,7 +137,7 @@ static bool request_decimal(uint16_t len)
 
 static bool request_ascii(uint16_t len)
 {
-	if (len != MAX_ASCII_OOB_LEN)
+	if (len > MAX_ASCII_OOB_LEN)
 		return false;
 
 	rl_printf("Request ASCII key (max characters %d)\n", len);
Signature · 1 line
2.14.1