Diff between d6dce2bd37dce6383919ea0e75276b8c433965bb and b22f56e88a9fb5ddec1ea7dece4c03746744b3a5

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +1 -1 modified

Full Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index d0676b5..74ada3b 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2418,7 +2418,7 @@ static void select_cb(struct a2dp_setup *setup, void *ret, int size)
 	struct avdtp_media_codec_capability *codec;
 	int err;
 
-	if (size) {
+	if (size >= 0) {
 		caps_add_codec(&setup->caps, setup->sep->codec, ret, size);
 		goto done;
 	}