libmsc/sdp: cosmetic: fix less-than-zero comparison of an unsigned value

Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce
Fixes: CID#206075
This commit is contained in:
Vadim Yanitskiy 2020-02-09 04:04:54 +07:00
parent ef830ef225
commit 40b11c9ba4
1 changed files with 1 additions and 1 deletions

View File

@ -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;