Skip to content

Commit

Permalink
verify pv_export_t parse_name function is set before calling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrod Baumann committed May 30, 2015
1 parent 69f6510 commit 3c47edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvar.c
Expand Up @@ -3718,7 +3718,7 @@ char* pv_parse_spec(str *in, pv_spec_p e)
goto error;
}
s.len = p - s.s;
if(pte->parse_name(e, &s)!=0)
if(pte->parse_name == NULL || pte->parse_name(e, &s)!=0)
{
LM_ERR("pvar \"%.*s\" has an invalid name param [%.*s]\n",
pvname.len, pvname.s, s.len, s.s);
Expand Down

0 comments on commit 3c47edd

Please sign in to comment.