summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-24 04:19:49 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-24 04:19:49 +0000
commit8db4e616c0107df21e3cacd981d073a64414de77 (patch)
tree0d70ff17e995e20e5fbbb577d3003d65809b1d11
parent232851e1acd3dddc763f1661d67a3c0256363366 (diff)
Fix service discovery deadlocks with Samsung D600 phones
-rw-r--r--src/sdp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdp.c b/src/sdp.c
index 57da1df9..67a20008 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -3115,6 +3115,10 @@ int sdp_service_search_attr_req(sdp_session_t *session, const sdp_list_t *search
status = -1;
goto end;
}
+ if (!recsize) {
+ sdp_record_free(rec);
+ break;
+ }
scanned += recsize;
pdata += recsize;