From 66624df5e0095a5ebdaac2c33bd50b093cd20d62 Mon Sep 17 00:00:00 2001 From: LX3JL Date: Sun, 1 Dec 2019 13:57:12 +0100 Subject: [PATCH] xlxd 2.3.3 corrected bug --- src/cprotocol.cpp | 7 +++++-- src/main.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cprotocol.cpp b/src/cprotocol.cpp index a5d2adb..7fd4967 100644 --- a/src/cprotocol.cpp +++ b/src/cprotocol.cpp @@ -177,9 +177,12 @@ CPacketStream *CProtocol::GetStream(uint16 uiStreamId, const CIp *Ip) if ( m_Streams[i]->GetStreamId() == uiStreamId ) { // if Ip not NULL, also check if IP match - if ( (Ip != NULL) && (*Ip == *(m_Streams[i]->GetOwnerIp())) ) + if ( (Ip != NULL) && (m_Streams[i]->GetOwnerIp() != NULL) ) { - stream = m_Streams[i]; + if ( *Ip == *(m_Streams[i]->GetOwnerIp()) ) + { + stream = m_Streams[i]; + } } } } diff --git a/src/main.h b/src/main.h index d54c193..e9f627e 100644 --- a/src/main.h +++ b/src/main.h @@ -49,7 +49,7 @@ #define VERSION_MAJOR 2 #define VERSION_MINOR 3 -#define VERSION_REVISION 2 +#define VERSION_REVISION 3 // global ------------------------------------------------------