[sr-dev] git:master:e513d1cc: seas: check for header type value for flags comparison

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 10:42:42 CET 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-15T10:41:59+01:00

seas: check for header type value for flags comparison

---

Modified: src/modules/seas/seas_action.c

---

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

---

diff --git a/src/modules/seas/seas_action.c b/src/modules/seas/seas_action.c
index 83be6307d0..de8fc9be65 100644
--- a/src/modules/seas/seas_action.c
+++ b/src/modules/seas/seas_action.c
@@ -1278,7 +1278,7 @@ int extract_allowed_headers(struct sip_msg *my_msg,int strip_top_vias,int allow_
    vb=NULL;
 
    for(hf=my_msg->headers;hf;hf=hf->next){
-      if(forbidden_hdrs & HDR_T2F(hf->type)){
+      if((hf->type>0) && (forbidden_hdrs & HDR_T2F(hf->type))){
 	 LM_DBG("Skipping header (%.*s)\n",hf->name.len,hf->name.s);
 	 continue;
       }else if(hf->type==HDR_VIA_T && strip_top_vias > 0){




More information about the sr-dev mailing list