laforge has submitted this change and it was merged. ( 
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(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



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 <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to