From aa6ce9d57874f54d4fa8c20ff719cdcffd86048c Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 12 May 2021 16:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8B=BC=E6=8E=A5=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E5=9F=BA=E7=A1=80=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_send_log.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 5a304f1..dd80840 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -353,6 +353,11 @@ static int get_l7_protocol(struct app_identify_result *result, char *protocol_li name=tsg_l7_protocol_id2name(result->app_id[i]); if(name!=NULL) { + if(i>0 && offset>0 && (protocol_list_len-offset)>0) + { + protocol_list[offset]='.'; + offset++; + } offset+=snprintf(protocol_list+offset, protocol_list_len-offset, "%s", name); } }