mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 21:24:16 +08:00
headset: Fix missing check for non-existent pending message
This commit is contained in:
parent
26bc2d99dd
commit
3169c1bef4
@ -1536,7 +1536,8 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)
|
||||
if (err < 0) {
|
||||
error("Unable to connect: %s (%d)", strerror(-err), -err);
|
||||
p->err = -err;
|
||||
error_connect_failed(dev->conn, p->msg, p->err);
|
||||
if (p->msg != NULL)
|
||||
error_connect_failed(dev->conn, p->msg, p->err);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user