summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tsg_entry.cpp2
-rw-r--r--src/tsg_proxy.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 823b4c0..c481dd7 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -2471,7 +2471,7 @@ extern "C" unsigned char TSG_MASTER_TCPALL_ENTRY(const struct streaminfo *a_tcp,
srt_action_context->set_latency_flag=session_tcp_establish_latency_ms_set(a_tcp, thread_seq, a_packet);
}
- if (a_packet != NULL)
+ if (a_packet!=NULL)
{
tsg_proxy_tcp_options_parse(a_tcp, a_packet);
}
diff --git a/src/tsg_proxy.cpp b/src/tsg_proxy.cpp
index 93ef39b..1ec7276 100644
--- a/src/tsg_proxy.cpp
+++ b/src/tsg_proxy.cpp
@@ -328,7 +328,7 @@ void tsg_proxy_first_data_process(const struct streaminfo *stream, struct tsg_pr
void tsg_proxy_tcp_options_parse(const struct streaminfo *stream, const void *a_packet)
{
- if(a_packet==NULL)
+ if(a_packet==NULL || g_tsg_para.intercept_sid<=0)
{
return ;
}