commit | 40b11c9ba414db943105aa7a221d5d905cdfa51a | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Sun Feb 09 04:04:54 2020 +0700 |
committer | Vadim Yanitskiy <axilirator@gmail.com> | Sun Feb 09 04:05:08 2020 +0700 |
tree | f392df9a43d561342895f46285f387edfc8aec04 | |
parent | ef830ef225685724f0bc4497e635006e99a5c9cd [diff] [blame] |
libmsc/sdp: cosmetic: fix less-than-zero comparison of an unsigned value Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce Fixes: CID#206075
diff --git a/src/libmsc/sdp_msg.c b/src/libmsc/sdp_msg.c index 7880978..cc54249 100644 --- a/src/libmsc/sdp_msg.c +++ b/src/libmsc/sdp_msg.c
@@ -321,7 +321,7 @@ 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;