summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-22 18:14:14 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-22 18:14:14 +0000
commit68cbd3fc410d1e50fe4e14860eade87ab34dd08b (patch)
tree8cbdf993e158da84fc1e5f1ff7dffc54dc22d4a4 /hcid
parentefeb7aac353c1c35be86275690f3f8272a91a7d7 (diff)
In case of no confirmation send a negative PIN code reply
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-security.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 19fb3ad1..aff0a3f0 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -684,6 +684,9 @@ static void confirm_agent_reply(DBusPendingCall *call, void *user_data)
goto fail;
}
+ if (result == FALSE)
+ goto fail;
+
len = strlen(req->pin);
set_pin_length(&req->sba, len);