提交 fe3bbb34 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5286 we can try this for added protection

上级 9ef03234
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论