From 65aaf36f2a36895e4a351ac3fa1cb8da87d4589c Mon Sep 17 00:00:00 2001 From: Steve Brown Date: Sat, 18 Nov 2017 05:48:45 -0500 Subject: [PATCH] mesh: Correct length test in agent.c:request_ascii --- mesh/agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/agent.c b/mesh/agent.c index c789b0c1a..efb8937d9 100644 --- a/mesh/agent.c +++ b/mesh/agent.c @@ -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); -- 2.47.3