FS-5286 we can try this for added protection

This commit is contained in:
Anthony Minessale 2013-04-29 09:19:47 -05:00
parent e23d4d37aa
commit 89afd89741
1 changed files with 1 additions and 1 deletions

View File

@ -1484,7 +1484,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);