浏览代码

misctesc: sync-ed with fuzz function

Daniel-Constantin Mierla 3 年之前
父节点
当前提交
9140686dcd
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/modules/misctest/misctest_mod.c

+ 6 - 1
src/modules/misctest/misctest_mod.c

@@ -40,6 +40,7 @@
 #include "../../core/parser/parse_hname2.h"
 #include "../../core/parser/contact/parse_contact.h"
 #include "../../core/parser/parse_to.h"
+#include "../../core/parser/parse_rr.h"
 #include "../../core/parser/parse_from.h"
 #include "../../core/parser/parse_refer_to.h"
 #include "../../core/parser/parse_ppi_pai.h"
@@ -341,7 +342,7 @@ static int misctest_message_init(void)
 
 	parse_to_uri(&tmsg);
 
-	parse_contact_header(&tmsg);
+	parse_contact_headers(&tmsg);
 
 	parse_refer_to_header(&tmsg);
 
@@ -355,6 +356,10 @@ static int misctest_message_init(void)
 
 	parse_identityinfo_header(&tmsg);
 
+	parse_record_route_headers(&tmsg);
+
+	parse_route_headers(&tmsg);
+
 	str uri;
 	get_src_uri(&tmsg, 0, &uri);