summaryrefslogtreecommitdiff
path: root/mesh/agent.c
diff options
context:
space:
mode:
authorSteve Brown <sbrown@cortland.com>2017-11-18 05:48:45 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2017-11-19 10:16:33 +0200
commit65aaf36f2a36895e4a351ac3fa1cb8da87d4589c (patch)
treef93e3e4d5bfdebad320d3ec2fcfb715d4838bdb2 /mesh/agent.c
parentce57fdeb2ff6b7ffd93c781d2f3474e8076e2cb5 (diff)
downloadbluez-65aaf36f2a36895e4a351ac3fa1cb8da87d4589c.tar.gz
mesh: Correct length test in agent.c:request_ascii
Diffstat (limited to 'mesh/agent.c')
-rw-r--r--mesh/agent.c2
1 files changed, 1 insertions, 1 deletions
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);