mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 21:24:16 +08:00
Revert "Remove 16 byte limit for PIN codes returned by agents"
This commit is contained in:
parent
9d67b7edf8
commit
11338bdb09
@ -403,7 +403,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
|
||||
len = strlen(pin);
|
||||
|
||||
dbus_error_init(&err);
|
||||
if (len < 1) {
|
||||
if (len > 16 || len < 1) {
|
||||
error("Invalid PIN length (%zu) from agent", len);
|
||||
dbus_set_error_const(&err, "org.bluez.Error.InvalidArgs",
|
||||
"Invalid passkey length");
|
||||
|
Loading…
Reference in New Issue
Block a user