From db01fbb0cf691b065f017a17cbdf77c3734cc5ee Mon Sep 17 00:00:00 2001 From: Anca Vamanu Date: Mon, 16 Aug 2010 14:06:00 +0000 Subject: [PATCH] - fixed not checking if create_dlg exits with error git-svn-id: svn+ssh://svn.code.sf.net/p/opensips/svn/trunk@7137 689a6050-402a-0410-94f2-e92a70836424 --- modules/pua_dialoginfo/pua_dialoginfo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/pua_dialoginfo/pua_dialoginfo.c b/modules/pua_dialoginfo/pua_dialoginfo.c index 295bee8c9d9..0df035aac55 100644 --- a/modules/pua_dialoginfo/pua_dialoginfo.c +++ b/modules/pua_dialoginfo/pua_dialoginfo.c @@ -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; @@ -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();