summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorPar-Gunnar Hjalmdahl <par-gunnar.hjalmdahl@stericsson.com>2012-09-11 08:16:26 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-09-11 11:20:36 +0300
commit06a7852b69eda34ad5da609897c46191cffc4973 (patch)
tree90d519574c1dfafc2b1eb463450dd2ab67fa58dd /audio
parent069cef5daac487c81dffe7b712f71af73987501d (diff)
downloadbluez-06a7852b69eda34ad5da609897c46191cffc4973.tar.gz
avctp: Fix reply for message with invalid PID
Reply for control message with invalid (not registered for reception of messages) PID should not have message information field present. This was affecting AVCTP qualification test case TP/NFR/BI-01-C.
Diffstat (limited to 'audio')
-rw-r--r--audio/avctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/avctp.c b/audio/avctp.c
index 03f3e7f1d..4e0e8dcd7 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -500,7 +500,7 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
if (avctp->pid != htons(AV_REMOTE_SVCLASS_ID)) {
avctp->ipid = 1;
- avc->code = AVC_CTYPE_REJECTED;
+ packet_size = AVCTP_HEADER_LENGTH;
goto done;
}