[PATCH] AVDTP Qualification: Fix error code for AVDTP get capability with wrong length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From 1ac9fbcbee5b2892374a1980c8b1046f5e6eb4ba Mon Sep 17 00:00:00 2001
From: Nick Pelly <npelly@xxxxxxxxxx>
Date: Thu, 26 Mar 2009 16:25:15 -0700
Subject: [PATCH] AVDTP Qualification: Fix error code for AVDTP get capability with wrong length.

---
 audio/avdtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/audio/avdtp.c b/audio/avdtp.c
index 8e38ccd..c110c2d 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1154,8 +1154,8 @@ static gboolean avdtp_getcap_cmd(struct avdtp *session, uint8_t transaction,
 	uint8_t err, buf[1024], *ptr = buf;
 
 	if (size < sizeof(struct seid_req)) {
-		error("Too short getcap request");
-		return FALSE;
+		err = AVDTP_BAD_LENGTH;
+		goto failed;
 	}
 
 	sep = find_local_sep_by_seid(session->server, req->acp_seid);
-- 
1.5.5


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux