mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 13:33:29 +00:00
mgcp_sdp: Don't check if an unsigned int is below 0
Change-Id: I129f5c6175a8e961bc08b9768bdf22a2232e2fcb Closes: CID#188849
This commit is contained in:
@@ -417,9 +417,6 @@ static int add_audio(struct msgb *sdp, int *payload_types, unsigned int payload_
|
|||||||
int rc;
|
int rc;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (payload_types_len < 0)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
rc = msgb_printf(sdp, "m=audio %d RTP/AVP", local_port);
|
rc = msgb_printf(sdp, "m=audio %d RTP/AVP", local_port);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user