Skip to content

Commit

Permalink
pv: Fix crash when xavp has no attributes
Browse files Browse the repository at this point in the history
- Fixes the crash reported in #511
(cherry picked from commit 19bb634ba043e74480c724fb7ed8a2dad43e8dda)

(cherry picked from commit a84d800)
  • Loading branch information
Hugh Waite authored and miconda committed Jul 4, 2016
1 parent cb752f9 commit 664a356
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/pv/pv_xavp.c
Expand Up @@ -112,6 +112,8 @@ int pv_get_xavp(struct sip_msg *msg, pv_param_t *param,
return pv_get_null(msg, param, res);
if(xname->next==NULL)
return pv_xavp_get_value(msg, param, res, avp);
if(avp->val.type != SR_XTYPE_XAVP)
return pv_get_null(msg, param, res);

idx = 0;
idxf = 0;
Expand Down

0 comments on commit 664a356

Please sign in to comment.