[sr-dev] git:master:e64a1eb7: textops: reset counter for looping again in remove_hf_idx()
Daniel-Constantin Mierla
miconda at gmail.com
Fri Mar 11 11:31:04 CET 2022
Module: kamailio
Branch: master
Commit: e64a1eb774284a720718878170e198147af67e50
URL: https://github.com/kamailio/kamailio/commit/e64a1eb774284a720718878170e198147af67e50
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/e64a1eb774284a720718878170e198147af67e50.diff
Patch: https://github.com/kamailio/kamailio/commit/e64a1eb774284a720718878170e198147af67e50.patch
---
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) {
More information about the sr-dev
mailing list