neard: Fix passing negative error code to strerror

error_reply expects non-negative error code.
This commit is contained in:
Szymon Janc 2013-01-29 09:54:30 +01:00 committed by Johan Hedberg
parent 83400b1009
commit e5b216061b

View File

@ -636,7 +636,7 @@ static DBusMessage *push_oob(DBusConnection *conn, DBusMessage *msg, void *data)
agent = adapter_get_agent(adapter);
if (!agent)
return error_reply(msg, -ENONET);
return error_reply(msg, ENONET);
io_cap = agent_get_io_capability(agent);
agent_unref(agent);