Skip to contentSkip to conversation

Fix printing D-Bus errors when headset record could not be found

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Dec 27, 2010 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Fix printing D-Bus errors when headset record could not be found

From: Luiz Augusto von Dentz <[email protected]>

When connection is started via headset_config_stream there is no D-Bus message to reply to.

---
 audio/headset.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
audio/headset.c +2 -1
index 72bf5b6..53a594d 100644
@@ -1445,7 +1445,8 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)
 		error("Unable to get service record: %s (%d)",
 							strerror(-err), -err);
 		p->err = -err;
-		error_connect_failed(dev->conn, p->msg, p->err);
+		if (p->msg)
+			error_connect_failed(dev->conn, p->msg, p->err);
 		goto failed;
 	}
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Luiz,

Quoted 7 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

When connection is started via headset_config_stream there is no D-Bus message to reply to.

---
 audio/headset.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Pushed upstream. Thanks.

Johan