lib/sdp.c: Validate attribute search return value
authorAravind Machiry <machiry@cs.ucsb.edu>
Mon, 28 Sep 2020 06:44:46 +0000 (23:44 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit921a993488215fdf8ad566f9da65318f4470449a
tree278ec4e303097d0daa637215bbdeb36a66a2a771
parente93a21279a480de487d381366427a0fe9bb5f027
lib/sdp.c: Validate attribute search return value

The calls to gen_[searchseq|attridseq]_seq functions return negative
value on failure. The return value should be checked to gracefully
exit with a proper exit code.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/sdp.c