mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
neard: Fix passing negative error code to strerror
error_reply expects non-negative error code.
This commit is contained in:
parent
83400b1009
commit
e5b216061b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user