Skip to content

Commit

Permalink
dialog: check for cseq value only when getting it for caller/request
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 19, 2018
1 parent 10be01a commit 740bc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/dialog/dlg_handlers.c
Expand Up @@ -208,7 +208,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
/* use the same as in request */
cseq = dlg->cseq[DLG_CALLEE_LEG];
}
if(cseq.s==NULL || cseq.len<=0) {
if ((leg==DLG_CALLER_LEG) && (cseq.s==NULL || cseq.len<=0)) {
LM_ERR("empty CSeq number\n");
goto error0;
}
Expand Down

0 comments on commit 740bc8c

Please sign in to comment.