]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 10 Oct 2008 15:47:58 +0000 (15:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 10 Oct 2008 15:47:58 +0000 (15:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9933 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index b175a42ba65df0549845d9a55c6cda3ff7ca43d8..9637b15ba767ace47263627733d94888cc7c8c1c 100644 (file)
@@ -1274,7 +1274,11 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                        return_cng_frame();
                }
 
-               if (bytes > 12 && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
+               if (bytes <= rtp_header_len) {
+                       continue;
+               }
+
+               if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) && switch_sockaddr_get_port(rtp_session->from_addr)) {
                        const char *tx_host;
                        const char *old_host;
                        char bufa[30], bufb[30];