diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-12-03 15:13:58 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-12-03 15:13:58 +0200 |
commit | 2cfe2bae7b0e82ab61b0f28805c3312646b08b67 (patch) | |
tree | 6a879595baaf20388d2c1372c2d147d11ef162bf /src | |
parent | fbb20362e9dcaf11c03e5bf15c41c70aba269619 (diff) |
Fix agent_create failure check and behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/adapter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/adapter.c b/src/adapter.c index 865449c5..d97c707d 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -446,9 +446,10 @@ static struct bonding_request_info *bonding_request_new(DBusConnection *conn, capability, device_agent_removed, device); - - if (!agent) - debug("agent_create failed"); + if (!agent) { + error("Unable to create a new agent"); + return NULL; + } device_set_agent(device, agent); |