2017-11-18 10:48:45

by Steve Brown

[permalink] [raw]
Subject: [PATCH] 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(-)

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.14.1



2017-11-19 08:17:50

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] mesh: Correct length test in agent.c:request_ascii

Hi Steve,

On Sat, Nov 18, 2017, [email protected] wrote:
> From: Steve Brown <[email protected]>
>
> ---
> mesh/agent.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan