Skip to content

Commit

Permalink
Check for dlg api loading when trying to call match_dialog()
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpaiu committed Feb 17, 2015
1 parent 0eb2b4d commit f61f685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/topology_hiding/topology_hiding.c
Expand Up @@ -194,7 +194,7 @@ int w_topology_hiding1(struct sip_msg *req,char *param)

int w_topology_hiding_match(struct sip_msg *req)
{
if (dlg_api.match_dialog(req) < 0)
if (dlg_api.match_dialog==NULL || dlg_api.match_dialog(req) < 0)
return topology_hiding_match(req);
else
/* we went to the dlg module, which triggered us back, all good */
Expand Down

0 comments on commit f61f685

Please sign in to comment.