commit | 10f32dbfbf9e120ca4e61f7a80a381371e8a495f | [log] [tgz] |
---|---|---|
author | Philipp Maier <pmaier@sysmocom.de> | Wed Dec 13 12:34:34 2017 +0100 |
committer | dexter <pmaier@sysmocom.de> | Thu Jan 04 10:57:04 2018 +0000 |
tree | f4754c6655097392b738c6f1e41a2443f6017fca | |
parent | e35eeae8e0a3b57e4fd50bc6ad3bb7178a5ffe2b [diff] |
client: mgcp_response_parse_params: check rtp port Also check the port number for plausibility like we do it already for the IP-Address Change-Id: I594a06fc9dd1bf0522f6e72a8943df52448d2ce4
diff --git a/src/libosmo-mgcp-client/mgcp_client.c b/src/libosmo-mgcp-client/mgcp_client.c index 1c35aa9..7e07d00 100644 --- a/src/libosmo-mgcp-client/mgcp_client.c +++ b/src/libosmo-mgcp-client/mgcp_client.c
@@ -180,6 +180,9 @@ &r->audio_port) != 1) goto response_parse_failure; + if (r->audio_port == 0) + goto response_parse_failure; + return 0; response_parse_failure: