Skip to content

Commit

Permalink
add pointer checks
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Jan 22, 2025
1 parent 884bf5d commit f13a6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProxyChannel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9302,13 +9302,13 @@ void CallSignalSocket::OnReleaseComplete(SignalingMsg * msg)
// TODO: only if call has been rerouted ?
// TODO: doesn't cover RP as caller in makeCall being hung up by remote
#if (H323PLUS_VER >= 1268)
if (m_callerSocket != !msg->GetQ931().IsFromDestination()) {
if (msg && m_callerSocket != !msg->GetQ931().IsFromDestination()) {
msg->GetQ931().SetFromDestination(!m_callerSocket);
msg->SetChanged();
}
#endif
// cause code rewriting
if (msg->GetQ931().HasIE(Q931::CauseIE)) {
if (msg && msg->GetQ931().HasIE(Q931::CauseIE)) {
cause = msg->GetQ931().GetCause();
if (Toolkit::Instance()->IsCauseCodeTranslationActive()) {
// translate cause codes
Expand Down

0 comments on commit f13a6b0

Please sign in to comment.