Module: kamailio
Branch: master
Commit: 9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef
URL:
https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)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/9fb8eb4a8db659b4e93c24d0d83d24b…
Patch:
https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24b…
---
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;
}