Diff between 8c8cc51b1866b250db9add8375413c232fda973b and e63b0f90354f1030e77e3defb052341351bdd92a
Changed Files
| File | Additions | Deletions | Status |
| lib/sdp.c | +5 | -0 | modified |
Full Patch
diff --git a/lib/sdp.c b/lib/sdp.c
index 6c73818..cc685b4 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -4429,6 +4429,11 @@ int sdp_service_search_attr_req(sdp_session_t *session, const sdp_list_t *search
/* add service class IDs for search */
seqlen = gen_searchseq_pdu(pdata, search);
+ if (seqlen < 0) {
+ errno = EINVAL;
+ status = -1;
+ goto end;
+ }
SDPDBG("Data seq added : %d\n", seqlen);