TSG-4030 Security Event Logs 中的 SSL.Intercept State 为 Passthrough 时,并未说明引起 Passthrough 的原因

(当命中 tcp passthrough 时,将 ssl_intercept_status 设置为 passthrough)
This commit is contained in:
luwenpeng
2021-12-31 14:06:19 +08:00
committed by luwenpeng
parent b54d87f82e
commit e2be64b67b
8 changed files with 118 additions and 54 deletions

View File

@@ -62,6 +62,17 @@ int tfe_cmsg_set(struct tfe_cmsg * cmsg, enum tfe_cmsg_tlv_type type, const unsi
}
struct tfe_cmsg_tlv *tlv = cmsg->tlvs[type];
uint16_t length = sizeof(struct tfe_cmsg_tlv) + size;
// If the current tlv has been set, the previous value will be overwritten
if (NULL != tlv)
{
cmsg->nr_tlvs--;
cmsg->size -= tlv->length;
cmsg->tlvs[type] = NULL;
free(tlv);
tlv = NULL;
}
if(tlv == NULL)
{
tlv = (struct tfe_cmsg_tlv*)ALLOC(char, length);