[mod_spandsp] Coverity CID 1024263 (Dereference before null check)

This commit is contained in:
Andrey Volk 2023-06-01 17:24:37 +03:00 committed by Dragos Oancea
parent 0c89eeadc0
commit d7a4ab7dce
1 changed files with 1 additions and 3 deletions

View File

@ -897,9 +897,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
fail:
if (new_session) {
switch_core_session_destroy(new_session);
}
if (modem) {
modem_set_state(modem, MODEM_STATE_ONHOOK);