[sr-dev] git:master:9fb8eb4a: pv_headers: fix detection of branch flag on collect
Victor Seva
linuxmaniac at torreviejawireless.org
Thu Feb 13 09:23:55 CET 2020
Module: kamailio
Branch: master
Commit: 9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef
URL: https://github.com/kamailio/kamailio/commit/9fb8eb4a8db659b4e93c24d0d83d24bcff8149ef
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at 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;
}
More information about the sr-dev
mailing list