diff --git a/profiles/audio/asha.c b/profiles/audio/asha.c
index 9bd57d7..a17b877 100644
--- a/profiles/audio/asha.c
+++ b/profiles/audio/asha.c
struct bt_asha_device *asha_dev = conn_data->asha_dev;
GError *gerr = NULL;
+ if (err) {
+ error("%s", err->message);
+ return;
+ }
+
if (!bt_io_get(io, &gerr,
BT_IO_OPT_IMTU, &asha_dev->imtu,
BT_IO_OPT_OMTU, &asha_dev->omtu,
/* Let this be non-fatal? */
asha_dev->omtu = ASHA_MIN_MTU;
asha_dev->imtu = ASHA_CONNECTION_MTU;
- error("Could not get L2CAP CoC socket MTU: %s", err->message);
+ error("Could not get L2CAP CoC socket MTU: %s", gerr->message);
g_error_free(gerr);
}
asha_dev = btd_service_get_user_data(service);
if (!asha_dev) {
/* Can this actually happen? */
- DBG("Not handlihng ASHA profile");
+ DBG("Not handling ASHA profile");
return;
}
if (!asha_dev) {
/* Can this actually happen? */
- DBG("Not handlihng ASHA profile");
+ DBG("Not handling ASHA profile");
return -1;
}