]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9548: return with error on wrong rtp ip given from config
authorDragos Oancea <droancea@yahoo.com>
Tue, 20 Sep 2016 14:41:48 +0000 (10:41 -0400)
committerDragos Oancea <droancea@yahoo.com>
Tue, 20 Sep 2016 15:05:55 +0000 (11:05 -0400)
src/switch_core_media.c

index 31223ffda2edfd60b366753e8832ea6e2b7d20e7..d254164ace5d43e41bb589e9fc2a99e5976b10fc 100644 (file)
@@ -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) ||