From fe3bbb34312cf8c0801754ef92ac9dafb2a2710b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 29 Apr 2013 09:19:47 -0500 Subject: [PATCH] FS-5286 we can try this for added protection --- src/mod/applications/mod_spandsp/mod_spandsp_fax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_fax.c b/src/mod/applications/mod_spandsp/mod_spandsp_fax.c index 0b0ba8a557..b82a68bc76 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_fax.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp_fax.c @@ -1486,7 +1486,7 @@ void mod_spandsp_fax_process_fax(switch_core_session_t *session, const char *dat continue; } - if (switch_test_flag(read_frame, SFF_UDPTL_PACKET)) { + if (switch_test_flag(read_frame, SFF_UDPTL_PACKET) && read_frame->packet && read_frame->packetlen) { /* now we know we can cast frame->packet to a udptl structure */ //switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "READ %d udptl bytes\n", read_frame->packetlen);