Skip to content

Commit

Permalink
avpops: remove unecessary test for deleting avps by name rules
Browse files Browse the repository at this point in the history
- causes crash, following the change to use cached pv structures
- reported by Alexandr Dubovikov, GH #239

(cherry picked from commit b120b47)
  • Loading branch information
miconda committed Jul 14, 2015
1 parent f5d11d1 commit 9c6eef9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/avpops/avpops_impl.c
Expand Up @@ -791,10 +791,6 @@ int ops_delete_avp(struct sip_msg* msg, struct fis_param *ap)
((ap->opd&AVPOPS_VAL_INT)&&((avp->flags&AVP_NAME_STR))==0) ||
((ap->opd&AVPOPS_VAL_STR)&&(avp->flags&AVP_NAME_STR)) ) )
continue;
if((ap->u.sval->pvp.pvn.u.isname.type&AVP_SCRIPT_MASK)!=0
&& ((ap->u.sval->pvp.pvn.u.isname.type&AVP_SCRIPT_MASK)
&avp->flags)==0)
continue;
/* remove avp */
destroy_avp( avp );
n++;
Expand Down

0 comments on commit 9c6eef9

Please sign in to comment.