diff options
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);  | 
