mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-03 11:58:36 +00:00
[Core] Fix dereference of null pointer in switch_ivr_wait_for_answer()
This commit is contained in:
parent
af095ebb68
commit
4b03a47a7f
@ -1145,6 +1145,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t
|
|||||||
|
|
||||||
if (read_frame && !pass) {
|
if (read_frame && !pass) {
|
||||||
|
|
||||||
|
if (!write_frame.codec) {
|
||||||
|
status = SWITCH_STATUS_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (ringback.fh) {
|
if (ringback.fh) {
|
||||||
switch_size_t mlen, olen;
|
switch_size_t mlen, olen;
|
||||||
unsigned int pos = 0;
|
unsigned int pos = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user