commit | 7ad750ebc50afa903a2c15b132053135cf04eecd | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Mon Aug 29 12:02:48 2016 +0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Tue Aug 30 11:14:11 2016 +0300 |
tree | 5f1bdce31cbb7ac7c40524ded96b3ab4a480d6cf | |
parent | 92a1173577e7ae4b332bd38a908e97e2dd9fc73c [diff] |
core/gatt: Fix passing invalid error code to strerror async_dbus_op_reply posix errors are passed as negative values.
diff --git a/src/gatt-client.c b/src/gatt-client.c index 029a9d1..2af6979 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c
@@ -309,7 +309,7 @@ if (err) { reply = err > 0 ? create_gatt_dbus_error(msg, err) : - btd_error_failed(msg, strerror(err)); + btd_error_failed(msg, strerror(-err)); goto send_reply; }