From: Patrice Fournier Date: Fri, 31 Jul 2015 02:27:35 +0000 (-0400) Subject: FS-7942 #comment Fix segfault on T.38 FAX calls X-Git-Tag: v1.6.2~86^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ab3c5d1e6e6109fab8e4ecec725e078560f7c9;p=thirdparty%2Ffreeswitch.git FS-7942 #comment Fix segfault on T.38 FAX calls --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 9e427dc821..714ee2ca48 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -6800,7 +6800,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_zerocopy_read_frame(switch_rtp_t *rtp frame->data = RTP_BODY(rtp_session); - if (bytes < rtp_header_len || switch_test_flag(frame, SFF_CNG)) { + if (!rtp_session->flags[SWITCH_RTP_FLAG_UDPTL] && (bytes < rtp_header_len || switch_test_flag(frame, SFF_CNG))) { frame->packet = NULL; frame->timestamp = 0; frame->seq = 0;