summaryrefslogtreecommitdiff
path: root/attrib/gattrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'attrib/gattrib.c')
-rw-r--r--attrib/gattrib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index ce7f7b3cc..a04a0ee49 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -83,6 +83,9 @@ GAttrib *g_attrib_new(GIOChannel *io, guint16 mtu)
if (!attr->att)
goto fail;
+ if (!bt_att_set_mtu(attr->att, mtu))
+ goto fail;
+
attr->buf = malloc0(mtu);
attr->buflen = mtu;
if (!attr->buf)