libmsc/sdp: cosmetic: fix less-than-zero comparison of an unsigned value
Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce Fixes: CID#206075changes/07/17107/1
parent
ef830ef225
commit
40b11c9ba4
|
@ -321,7 +321,7 @@ static int sdp_parse_media_description(struct sdp_msg *sdp, const char *src)
|
|||
if (sscanf(src, "audio %u RTP/AVP", &port) < 1)
|
||||
return -ENOTSUP;
|
||||
|
||||
if (port < 0 || port > 0xffff)
|
||||
if (port > 0xffff)
|
||||
return -EINVAL;
|
||||
|
||||
sdp->rtp.port = port;
|
||||
|
|
Loading…
Reference in New Issue