Skip to content

Commit

Permalink
add ptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Aug 23, 2018
1 parent 325e430 commit b4c4aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxyChannel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4c4aa3

Please sign in to comment.