diff options
| -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"}, |
