summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;