From: Anthony Minessale Date: Tue, 4 Oct 2011 19:37:48 +0000 (-0500) Subject: fix missing null dmachine check X-Git-Tag: v1.2-rc1~27^2~378 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65836742e80a7db883e75963e12f50b998552fff;p=thirdparty%2Ffreeswitch.git fix missing null dmachine check --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 3bccaf5b0a..99bf524324 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -43,7 +43,9 @@ SWITCH_DECLARE(void) switch_core_session_set_dmachine(switch_core_session_t *ses int i = (int) target; if (i == 0 || i == 1) { - switch_ivr_dmachine_set_target(dmachine, target); + if (dmachine) { + switch_ivr_dmachine_set_target(dmachine, target); + } session->dmachine[i] = dmachine; } }