]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4194 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 18:09:38 +0000 (13:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 7 May 2012 18:09:51 +0000 (13:09 -0500)
src/switch_ivr_originate.c

index 33c5e2e6d065a172bc6a3b4d2ac5c58837de28f4..87ff02ec8c0775a163d9d69d1d412f975000bc2b 100644 (file)
@@ -444,7 +444,7 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
 
 
        for (i = 0; i < len; i++) {
-               if (switch_channel_test_flag(originate_status[i].peer_channel, CF_CHANNEL_SWAP)) {
+               if (originate_status[i].peer_channel && switch_channel_test_flag(originate_status[i].peer_channel, CF_CHANNEL_SWAP)) {
                        const char *key = switch_channel_get_variable(originate_status[i].peer_channel, "channel_swap_uuid");
                        switch_core_session_t *swap_session, *old_session;