Browse Source

seas: check for header type value for flags comparison

Daniel-Constantin Mierla 3 years ago
parent
commit
e513d1cc54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/seas/seas_action.c

+ 1 - 1
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){