aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}