瀏覽代碼

tm: proper increment of lightweight parsing for call-id

- a pretty much harmless fix to increment with 3 instead of 7 when
  parsing Call-ID name in lightweight parser
- reported and patch by Walter Doekes, FS#168
(cherry picked from commit 21346f47f7712d08369e45e970a6ffec3eab0a3c)
Daniel-Constantin Mierla 14 年之前
父節點
當前提交
35fa51c833
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/tm/lw_parser.c

+ 1 - 1
modules/tm/lw_parser.c

@@ -142,7 +142,7 @@ char *lw_get_hf_name(char *begin, char *end,
 
 		case __id1_:
 		case __id2_:
-			p += 7;
+			p += 3;
 			*type = HDR_CALLID_T;
 			break;