浏览代码

textops: reset counter for looping again in remove_hf_idx()

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

+ 1 - 0
src/modules/textops/textops.c

@@ -1845,6 +1845,7 @@ static int ki_remove_hf_idx(sip_msg_t* msg, str* hname, int idx)
 	pos = idx;
 
 again:
+	i = 0;
 	for (hfi=msg->headers; hfi; hfi=hfi->next) {
 		if (hfm.type!=HDR_OTHER_T && hfm.type!=HDR_ERROR_T) {
 			if (hfm.type!=hfi->type) {