Revert "FS-8713 #resolve avoid read exceeding buffer"

This reverts commit 1746d2ebc0.
This commit is contained in:
Seven Du committed 2016-01-07 17:00:48 +08:00
1 parent 1746d2ebc0
commit 5de4622734
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -1088,8 +1088,6 @@ SWITCH_DECLARE(switch_status_t) switch_jb_put_packet(switch_jb_t *jb, switch_rtp
uint32_t i;
uint16_t want = ntohs(jb->next_seq), got = ntohs(packet->header.seq);
switch_assert(len <= SWITCH_RTP_MAX_BUF_LEN);
switch_mutex_lock(jb->mutex);
if (!want) want = got;