Skip to content

Commit

Permalink
- fixed not checking if create_dlg exits with error
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.code.sf.net/p/opensips/svn/trunk@7137 689a6050-402a-0410-94f2-e92a70836424
  • Loading branch information
Anca Vamanu committed Aug 16, 2010
1 parent cbc5ec6 commit db01fbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/pua_dialoginfo/pua_dialoginfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void
__dialog_sendpublish(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
{
str tag = {0,0};
struct to_body from, to;
struct to_body from;
str peer_uri= {0, 0};
char flag = DLG_PUB_AB;
str flag_str;
Expand Down Expand Up @@ -499,7 +499,11 @@ int dialoginfo_set(struct sip_msg* msg, char* flag_pv, char* str2)
if (msg->REQ_METHOD != METHOD_INVITE)
return 1;

dlg_api.create_dlg(msg);
if(dlg_api.create_dlg(msg)< 0)
{
LM_ERR("Failed to create dialog\n");
return -1;
}

dlg = dlg_api.get_dlg();

Expand Down

0 comments on commit db01fbb

Please sign in to comment.