Module: kamailio
Branch: master
Commit: 9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef
URL: 
https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2020-02-13T09:22:43+01:00

pv_headers: fix detection of branch flag on collect

---

Modified: src/modules/pv_headers/pvh_func.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef.patch

---

diff --git a/src/modules/pv_headers/pvh_func.c 
b/src/modules/pv_headers/pvh_func.c
index 1340500cc4..22ee74e42d 100644
--- a/src/modules/pv_headers/pvh_func.c
+++ b/src/modules/pv_headers/pvh_func.c
@@ -51,7 +51,7 @@ int pvh_collect_headers(struct sip_msg *msg, int is_auto)
                                return -1;
                        }
                } else {
-                       if(isbflagset(br_idx, FL_PV_HDRS_COLLECTED)) {
+                       if(isbflagset(br_idx, FL_PV_HDRS_COLLECTED) == 1) {
                                LM_ERR("headers are already collected\n");
                                return -1;
                        }


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to