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

Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce
Fixes: CID#206075
changes/07/17107/1
Vadim Yanitskiy 3 years ago
parent ef830ef225
commit 40b11c9ba4
  1. 2
      src/libmsc/sdp_msg.c

@ -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…
Cancel
Save