* [PATCH] mesh: Correct length test in agent.c:request_ascii
@ 2017-11-18 10:48 sbrown
2017-11-19 8:17 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: sbrown @ 2017-11-18 10:48 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Steve Brown
From: Steve Brown <sbrown@cortland.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-19 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-18 10:48 [PATCH] mesh: Correct length test in agent.c:request_ascii sbrown
2017-11-19 8:17 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).