From b4c4aa3f8afe7a621b6664a9dcdf8b8cb95d9049 Mon Sep 17 00:00:00 2001 From: Jan Willamowius Date: Thu, 23 Aug 2018 18:06:10 +0200 Subject: [PATCH] add ptr check --- ProxyChannel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProxyChannel.cxx b/ProxyChannel.cxx index a2fad78c..c314fdb9 100644 --- a/ProxyChannel.cxx +++ b/ProxyChannel.cxx @@ -13563,7 +13563,7 @@ bool H245ProxyHandler::HandleOpenLogicalChannel(H245_OpenLogicalChannel & olc, c } else { lc = FindLogicalChannel(flcn); } - if (lc) { + if (lc && h225Params) { params.m_keepAliveChannel = IPToH245TransportAddr(GetMasqAddr(), lc->GetPort()); // use RTP port for keepAlives ((RTPLogicalChannel*)lc)->SetUsesH46019fc(UsesH46019fc()); ((RTPLogicalChannel*)lc)->SetRTPSessionID((WORD)h225Params->m_sessionID);