diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-11 03:41:03 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-11 03:41:03 +0000 | 
| commit | 085532b9b31837bdd7d028c1e65bf428807d27bb (patch) | |
| tree | 48513bcdd48b9df29434d044f3d688b3eb0cc331 | |
| parent | db58bd1d728f3dc0610ba52068f468d2081e78a3 (diff) | |
Check for non-existing passcode agent
| -rw-r--r-- | hcid/dbus-security.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index a0230f77..bbc82871 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -236,7 +236,12 @@ static int call_passkey_agent(struct passkey_agent *agent, int dev, const char *  	ba2str(sba, bda); -	debug("Creating method call: name=%s, path=%s", agent->name, +	if (!agent) { +		debug("call_passkey_agent(): no agent registered"); +		goto failed; +	} + +	debug("Calling PasskeyAgent.Request: name=%s, path=%s", agent->name,  			agent->path);  	message = dbus_message_new_method_call(agent->name, agent->path, | 
