summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2021-10-25 20:33:49 +0800
committerliuxueli <[email protected]>2021-10-25 20:33:49 +0800
commit9fcc3c88d383dd7ea289310a56a01e3a9827c6a1 (patch)
treeaf4f93b6203e023f23583168134181a9c0b06f83
parentaebf93d6183fe783dd47fb0089eb30a4197d473e (diff)
TSG-8203: 增加对MESA_net_jump_to_layer返回值的是否未空的判断,避免访问空指针的导致重启v5.4.7
-rw-r--r--src/tsg_entry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 91e7eba..f54a6f6 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -1010,7 +1010,7 @@ static int set_tcp_establish_latency_ms(const struct streaminfo *a_tcp, int thre
break;
}
- if(!(tcp->syn))
+ if((tcp!=NULL) && !(tcp->syn))
{
set_session_attribute_label(a_tcp, TSG_ATTRIBUTE_TYPE_ESTABLISH_LATECY, NULL, 0, a_tcp->threadnum);
return 1;