summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tsg_entry.cpp3
-rw-r--r--src/tsg_rule.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 327df4f..a546dfd 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -1165,7 +1165,8 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t
rst_paras.signature_seed2=13;
rst_paras.th_flags=4;
rst_paras.__pad_no_use=0;
- MESA_rst_tcp(a_tcp, &rst_paras, sizeof(rst_paras));
+ rst_paras.dir=DIR_DOUBLE;
+ ret=MESA_rst_tcp(a_tcp, &rst_paras, sizeof(rst_paras));
opt_value=1;
MESA_set_stream_opt(a_tcp, MSO_TCP_RST_REMEDY, (void *)&opt_value, sizeof(opt_value));
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index 0b36906..361faae 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -1585,8 +1585,8 @@ int tsg_scan_shared_policy(Maat_feather_t maat_feather, struct streaminfo *a_str
);
}
- ret=project_req_add_struct(a_stream, g_tsg_para.internal_project_id, (const void *)attribute_label);
- if(ret>0)
+ attribute_label=(struct _session_attribute_label_t *)project_req_get_struct(a_stream, g_tsg_para.internal_project_id);
+ if(attribute_label!=NULL)
{
attribute_label->fqdn_category_id_num=tsg_get_fqdn_category_id(g_tsg_maat_feather,
identify_info->domain,