diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-11-14 20:41:13 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-11-14 20:41:13 +0000 |
commit | 66787725fea5fc40d9377f0cc38771a7d90e3436 (patch) | |
tree | 371ee27b96f89429f0e5dda159cd5d8ee77d7cff /hcid | |
parent | 54e6e9fcea08bce3bc2b01fb562a74feafaa52be (diff) |
app specific passkey agent: missing invalid args verification
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-security.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index 6d510587..1383a263 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -261,6 +261,9 @@ static DBusHandlerResult register_passkey_agent(DBusConnection *conn, DBUS_TYPE_INVALID)) return error_invalid_arguments(conn, msg); + if ((check_address(addr) < 0) || (path[0] != '/')) + return error_invalid_arguments(conn, msg); + memset(&ref, 0, sizeof(ref)); ref.name = (char *) dbus_message_get_sender(msg); |