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
(cherry picked from commit 740bc8c)
(cherry picked from commit b66ebc6)
  • Loading branch information
miconda committed Apr 3, 2019
1 parent 1b1d17f commit 5c9b355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/dialog/dlg_handlers.c
Expand Up @@ -205,7 +205,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 5c9b355

Please sign in to comment.