[PATCH] mesh: Correct length test in agent.c:request_ascii

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Steve Brown <sbrown@xxxxxxxxxxxx>

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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux