Module: kamailio
Branch: master
Commit: ca2b8117d20ba507f698990cf1bbbd908882ea71
URL:
https://github.com/kamailio/kamailio/commit/ca2b8117d20ba507f698990cf1bbbd9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2018-06-01T10:00:38+02:00
Merge pull request #1552 from snen/dlg_cseq_nullpointer_fix
dialog: check CSeq careful with track_cseq_updates
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ca2b8117d20ba507f698990cf1bbbd9…
Patch:
https://github.com/kamailio/kamailio/commit/ca2b8117d20ba507f698990cf1bbbd9…
---
diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index 1e343c9981..b97e8f7123 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -73,7 +73,8 @@ static int dlg_cseq_prepare_msg(sip_msg_t *msg)
return 1;
}
- if (parse_headers(msg, HDR_CSEQ_F, 0)==-1) {
+ if((!msg->cseq && (parse_headers(msg,HDR_CSEQ_F,0)<0 || !msg->cseq))
+ || !msg->cseq->parsed){
LM_DBG("parsing cseq header failed\n");
return 2;
}