Diff between 54eea0c0974e10f04a4339947e8375653a1b4cb1 and e8907bccd47b56da0dcdecb51fc6f8e9a8faff07

Changed Files

File Additions Deletions Status
src/profile.c +3 -0 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index 6e272c4..637ff71 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -1546,6 +1546,7 @@ static void record_cb(sdp_list_t *recs, int err, gpointer user_data)
 
 	if (!recs || !recs->data) {
 		error("No SDP records found for %s", ext->name);
+		err = -ENOTSUP;
 		goto failed;
 	}
 
@@ -1557,6 +1558,7 @@ static void record_cb(sdp_list_t *recs, int err, gpointer user_data)
 		if (sdp_get_access_protos(rec, &protos) < 0) {
 			error("Unable to get proto list from %s record",
 								ext->name);
+			err = -ENOTSUP;
 			goto failed;
 		}
 
@@ -1585,6 +1587,7 @@ static void record_cb(sdp_list_t *recs, int err, gpointer user_data)
 	if (!conn->chan && !conn->psm) {
 		error("Failed to find L2CAP PSM or RFCOMM channel for %s",
 								ext->name);
+		err = -ENOTSUP;
 		goto failed;
 	}