From a028389bc21e364dac3032d60678c65b4e243bee Mon Sep 17 00:00:00 2001 From: marian Date: Thu, 6 Mar 2008 08:16:00 +0000 Subject: [PATCH] Fixed bug: when sending ISDN CONNECT message: check if the pointer to the list of parameters is valid before trying to access it. git-svn-id: http://voip.null.ro/svn/yate@1746 acf43c95-373e-0410-b603-e72c3f656dc1 --- libs/ysig/q931.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ysig/q931.cpp b/libs/ysig/q931.cpp index 1f5c7935..80beffc3 100644 --- a/libs/ysig/q931.cpp +++ b/libs/ysig/q931.cpp @@ -1422,8 +1422,10 @@ bool ISDNQ931Call::sendConnect(SignallingMessage* sigMsg) m_channelIDSent = true; } // Progress indicator - m_data.m_progress = sigMsg->params().getValue("call-progress"); - m_data.processProgress(msg,true,&q931()->parserData()); + if (sigMsg) { + m_data.m_progress = sigMsg->params().getValue("call-progress"); + m_data.processProgress(msg,true,&q931()->parserData()); + } m_conTimer.start(); return q931()->sendMessage(msg); }