mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
fix missing null dmachine check
This commit is contained in:
parent
b0b5fb16dc
commit
65836742e8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user