[PATCH]Service Search Request bug

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

 



Hi Marcel,

Please review the attached patch.

I found this error when I was using OBEX Data Server. There is a
"short" description here:
http://pastebin.com/m7b65cb6e

The same bug was reported in the ubuntu launchpad:
https://bugs.launchpad.net/ubuntu/+source/obex-data-server/+bug/211252

Regards,
Claudio.
-- 
--
Claudio Takahasi
Instituto Nokia de Tecnologia
Recife - Pernambuco - Brasil
+55 81 30879999
Index: sdpd/request.c
===================================================================
RCS file: /cvsroot/bluez/utils/sdpd/request.c,v
retrieving revision 1.22
diff -u -r1.22 request.c
--- sdpd/request.c	5 Mar 2008 18:10:39 -0000	1.22
+++ sdpd/request.c	9 May 2008 19:36:58 -0000
@@ -238,13 +238,12 @@
 {
 	int status = 0, i, plen, mlen, mtu, scanned;
 	sdp_list_t *pattern = NULL;
-	uint16_t expected, actual;
+	uint16_t expected, actual, rsp_count = 0;
 	uint8_t dtd;
 	sdp_cont_state_t *cstate = NULL;
 	uint8_t *pCacheBuffer = NULL;
 	int handleSize = 0;
 	uint32_t cStateId = 0;
-	short rsp_count = 0;
 	short *pTotalRecordCount, *pCurrentRecordCount;
 	uint8_t *pdata = req->buf + sizeof(sdp_pdu_hdr_t);
 
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux