diff options
| author | liuxueli <[email protected]> | 2023-07-11 19:54:12 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-07-11 19:54:12 +0800 |
| commit | dfd450c80026598daa1d346a6497e7bc92a6b40d (patch) | |
| tree | 6dd56a147df13c824dc124b936229d2942d22334 /src | |
| parent | db87740104c5d9d58600cd6597f858c58c7131a2 (diff) | |
修正POP3字符串对应的长度v6.0.34
Diffstat (limited to 'src')
| -rw-r--r-- | src/tsg_entry.cpp | 5 | ||||
| -rw-r--r-- | src/tsg_variable.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index ac0e81b..691820e 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -982,6 +982,11 @@ static int check_app_id(unsigned int *new_app_id, int n_new_app_id, unsigned int int session_app_gather_results_set_l7_protocol(const struct streaminfo *a_stream, unsigned int *app_id, int n_app_id) { + if(app_id==NULL || n_app_id==0) + { + return 0; + } + struct gather_app_result *gather_result=(struct gather_app_result *)session_gather_app_results_get(a_stream); if(gather_result==NULL) { diff --git a/src/tsg_variable.cpp b/src/tsg_variable.cpp index b853bed..07be475 100644 --- a/src/tsg_variable.cpp +++ b/src/tsg_variable.cpp @@ -24,7 +24,7 @@ struct id2field_tlv g_tsg_proto_name2id[PROTO_MAX]={{PROTO_UNKONWN, 0, 7, "unkno {PROTO_SSH, 0, 3, "SSH"}, {PROTO_SMTP, 0, 4, "SMTP"}, {PROTO_IMAP, 0, 4, "IMAP"}, - {PROTO_POP3, 0, 3, "POP3"}, + {PROTO_POP3, 0, 4, "POP3"}, {PROTO_RTP, 0, 3, "RTP"}, {PROTO_APP, 0, 4, "BASE"}, {PROTO_L2TP, 0, 4, "L2TP"}, |
