diff --git a/src/agent.c b/src/agent.c index f87f25348..40495bfc7 100644 --- a/src/agent.c +++ b/src/agent.c @@ -403,7 +403,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) len = strlen(pin); dbus_error_init(&err); - if (len > 16 || len < 1) { + if (len < 1) { error("Invalid PIN length (%zu) from agent", len); dbus_set_error_const(&err, "org.bluez.Error.InvalidArgs", "Invalid passkey length");