From: Dragos Oancea Date: Tue, 20 Sep 2016 14:41:48 +0000 (-0400) Subject: FS-9548: return with error on wrong rtp ip given from config X-Git-Tag: v1.6.11~9^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2f3c96db2d496dc349c1e6786f958a7681a4eb;p=thirdparty%2Ffreeswitch.git FS-9548: return with error on wrong rtp ip given from config --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 31223ffda2..d254164ace 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6052,6 +6052,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_choose_port(switch_core_sessio lookup_rtpip = smh->mparams->rtpip; + if (!lookup_rtpip) { + return SWITCH_STATUS_FALSE; + } + /* Don't do anything if we're in proxy mode or if a (remote) port already has been found */ if (!force) { if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) ||