From 7a71bf30cd746ac5901387a5274f27d31c79a434 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Sat, 26 Jan 2019 11:24:15 +0100 Subject: [PATCH] avinfo: Fix parsing capabilities Function print_caps() expects capabilities buffer without AVDTP header. Previously avinfo somehow worked, because AVDTP header looks like capability header with unknown category which was skipped. Change-Id: Ieaf08b3cd128893d29b11d92f13f0d301059a26e Signed-off-by: himanshu --- tools/avinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/avinfo.c b/tools/avinfo.c index 6f9f276..e45b509 100755 --- a/tools/avinfo.c +++ b/tools/avinfo.c @@ -799,7 +799,7 @@ static ssize_t avdtp_get_caps(int sk, int seid) return -1; } - print_caps(caps, ret); + print_caps(caps->caps, ret - sizeof(struct getcap_resp)); return 0; } -- 2.7.4