TSG-13303,TSG-13304: 发送默认安全策略日志时访问空指针导致应用重启

This commit is contained in:
liuxueli
2023-01-09 17:46:23 +08:00
parent 30b2f1cda9
commit 3965ac7150
5 changed files with 79 additions and 51 deletions

View File

@@ -1698,6 +1698,11 @@ int set_session_attributes(struct tsg_log_instance_t *_instance, struct TLD_hand
TLD_append(_handle, _instance->id2field[LOG_COMMON_TUNNELS_ENDPOINT_B_DESC].name, (void *)attribute_label->server_endpoint->description, TLD_TYPE_STRING);
}
if(attribute_label->session_flags>0 && !(TLD_search(_handle, _instance->id2field[LOG_COMMON_FLAGS].name)))
{
TLD_append(_handle, _instance->id2field[LOG_COMMON_FLAGS].name, (void *)attribute_label->session_flags, TLD_TYPE_LONG);
}
return 1;
}