Change in ...osmo-mgw[master]: mgcp_sdp: Don't check if an unsigned int is below 0

laforge gerrit-no-reply at lists.osmocom.org
Sun Jul 21 07:28:46 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/14859


Change subject: mgcp_sdp: Don't check if an unsigned int is below 0
......................................................................

mgcp_sdp: Don't check if an unsigned int is below 0

Change-Id: I129f5c6175a8e961bc08b9768bdf22a2232e2fcb
Closes: CID#188849
---
M src/libosmo-mgcp/mgcp_sdp.c
1 file changed, 0 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/59/14859/1

diff --git a/src/libosmo-mgcp/mgcp_sdp.c b/src/libosmo-mgcp/mgcp_sdp.c
index 99e764b..ddd4657 100644
--- a/src/libosmo-mgcp/mgcp_sdp.c
+++ b/src/libosmo-mgcp/mgcp_sdp.c
@@ -417,9 +417,6 @@
 	int rc;
 	unsigned int i;
 
-	if (payload_types_len < 0)
-		return -EINVAL;
-
 	rc = msgb_printf(sdp, "m=audio %d RTP/AVP", local_port);
 	if (rc < 0)
 		return -EINVAL;

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I129f5c6175a8e961bc08b9768bdf22a2232e2fcb
Gerrit-Change-Number: 14859
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190721/17ed5cfd/attachment.html>


More information about the gerrit-log mailing list