Change in osmo-msc[master]: libmsc/sdp: cosmetic: fix less-than-zero comparison of an unsigned value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sat Feb 8 21:05:30 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/17107 )


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

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

Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce
Fixes: CID#206075
---
M src/libmsc/sdp_msg.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/07/17107/1

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;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/17107
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I57ed17d8457ada69a3c22233f30339d2c0f65bce
Gerrit-Change-Number: 17107
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200208/6dfda4c3/attachment.htm>


More information about the gerrit-log mailing list