Module: kamailio
Branch: master
Commit: e64a1eb774284a720718878170e198147af67e50
URL:
https://github.com/kamailio/kamailio/commit/e64a1eb774284a720718878170e1981…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-11T11:28:36+01:00
textops: reset counter for looping again in remove_hf_idx()
---
Modified: src/modules/textops/textops.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e64a1eb774284a720718878170e1981…
Patch:
https://github.com/kamailio/kamailio/commit/e64a1eb774284a720718878170e1981…
---
diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c
index bfb5a54941..a3479c06fd 100644
--- a/src/modules/textops/textops.c
+++ b/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) {