TSG-8203: 增加对MESA_net_jump_to_layer返回值的是否未空的判断,避免访问空指针的导致重启
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user