]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7942 #comment Fix segfault on T.38 FAX calls
authorPatrice Fournier <patrice@foipdev2.phl.corp.t38fax.com>
Fri, 31 Jul 2015 02:27:35 +0000 (22:27 -0400)
committerPatrice Fournier <patrice@foipdev2.phl.corp.t38fax.com>
Thu, 6 Aug 2015 01:07:26 +0000 (21:07 -0400)
src/switch_rtp.c

index 9e427dc821ff0f7146c52ba1092305129c4a89b5..714ee2ca486201a118190de532115ea069fc4b58 100644 (file)
@@ -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;