libmsc/sdp: cosmetic: fix less-than-zero comparison of an unsigned value
Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce Fixes: CID#206075
This commit is contained in:
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)
|
if (sscanf(src, "audio %u RTP/AVP", &port) < 1)
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
|
|
||||||
if (port < 0 || port > 0xffff)
|
if (port > 0xffff)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
sdp->rtp.port = port;
|
sdp->rtp.port = port;
|
||||||
|
|
Loading…
Reference in New Issue