summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-09-05 19:50:08 +0800
committerliuxueli <[email protected]>2023-09-05 19:50:08 +0800
commit8608f45dc5c42c95310350ca23bcb8b202bc2367 (patch)
tree0aaaacd92bad401b6bef5375ff3e2a1bde2407ff
parent612b3c0c67bfe2284bca6543d1809fc7099c6d0f (diff)
TSG-15343: TCPALL入口判断Drop After N Packet时,未判断是否为0导致重复发送reset包v6.1.6
-rw-r--r--src/tsg_entry.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 7bf61ed..687e631 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -2389,6 +2389,10 @@ static unsigned char tsg_master_all_entry(const struct streaminfo *a_stream, uns
case TSG_METHOD_TYPE_DROP:
case TSG_METHOD_TYPE_APP_DROP:
{
+ if(srt_action_context->hited_para.after_n_packets==0)
+ {
+ break;
+ }
// contain hited current packet, platform calls tcp first and tcpall secondary.
if(((srt_action_context->hited_para.after_n_packets > 0) && a_stream->type==STREAM_TYPE_TCP) ||
((srt_action_context->hited_para.after_n_packets > 0) && a_stream->type==STREAM_TYPE_UDP)