Skip to content

Commit

Permalink
pua_dialoginfo: fixed condition in mod init checking avp names
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 14, 2017
1 parent 9dadfe9 commit 666c9d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/pua_dialoginfo/pua_dialoginfo.c
Expand Up @@ -618,7 +618,7 @@ __dialog_created(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
struct sip_msg *request = _params->req;
struct dlginfo_cell *dlginfo;

if (request->REQ_METHOD != METHOD_INVITE)
if (request==NULL || request->REQ_METHOD != METHOD_INVITE)
return;

if(send_publish_flag > -1 && !(request->flags & (1<<send_publish_flag)))
Expand Down Expand Up @@ -719,8 +719,8 @@ static int mod_init(void)

if(use_pubruri_avps) {

if(!(pubruri_caller_avp && *pubruri_caller_avp)
&& (pubruri_callee_avp && *pubruri_callee_avp)) {
if((pubruri_caller_avp==NULL || *pubruri_caller_avp==0)
|| (pubruri_callee_avp==NULL || *pubruri_callee_avp==0)) {
LM_ERR("pubruri_caller_avp and pubruri_callee_avp must be set,"
" if use_pubruri_avps is enabled\n");
return -1;
Expand Down

0 comments on commit 666c9d1

Please sign in to comment.