aboutsummaryrefslogtreecommitdiffstats
path: root/attrib
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-07-21 15:29:16 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-08-09 18:06:44 -0400
commitcb1b86a6abc692a0daa73d62454d1052d6a688d1 (patch)
treef43e67891a29e21bf7b66c038a42fc5f9100b0e6 /attrib
parentdafe0b2820611bf40851eb6b551ccb80e6b42deb (diff)
downloadbluez-cb1b86a6abc692a0daa73d62454d1052d6a688d1.tar.gz
bluez-cb1b86a6abc692a0daa73d62454d1052d6a688d1.tar.xz
bluez-cb1b86a6abc692a0daa73d62454d1052d6a688d1.zip
Fix using the wrong byte as Error Code
In the Error Response PDU, the Error Code is the fifth byte in the PDU.
Diffstat (limited to 'attrib')
-rw-r--r--attrib/gattrib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 791ba588..31eb1835 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -116,7 +116,7 @@ static gboolean received_data(GIOChannel *io, GIOCondition cond, gpointer data)
}
if (buf[0] == ATT_OP_ERROR) {
- status = buf[1];
+ status = buf[4];
goto done;
}