Przeglądaj źródła

textops: reset counter for looping again in remove_hf_idx()

Daniel-Constantin Mierla 3 lat temu
rodzic
commit
e64a1eb774
1 zmienionych plików z 1 dodań i 0 usunięć
  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;
 	pos = idx;
 
 
 again:
 again:
+	i = 0;
 	for (hfi=msg->headers; hfi; hfi=hfi->next) {
 	for (hfi=msg->headers; hfi; hfi=hfi->next) {
 		if (hfm.type!=HDR_OTHER_T && hfm.type!=HDR_ERROR_T) {
 		if (hfm.type!=HDR_OTHER_T && hfm.type!=HDR_ERROR_T) {
 			if (hfm.type!=hfi->type) {
 			if (hfm.type!=hfi->type) {