浏览代码

update bad_msg_hdr statistics

Daniel-Constantin Mierla 16 年之前
父节点
当前提交
0c7926f1a8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      parser/msg_parser.c

+ 2 - 0
parser/msg_parser.c

@@ -54,6 +54,7 @@
 #include "../data_lump_rpl.h"
 #include "../mem/mem.h"
 #include "../error.h"
+#include "../events.h"
 #include "../globals.h"
 #include "parse_hname2.h"
 #include "parse_uri.h"
@@ -276,6 +277,7 @@ char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr)
 	return tmp;
 error:
 	DBG("get_hdr_field: error exit\n");
+	sr_event_exec(SREV_CORE_STATS, (void*)8);
 	hdr->type=HDR_ERROR_T;
 	hdr->len=tmp-hdr->name.s;
 	return tmp;