corrected bug
pull/122/head
LX3JL 6 years ago committed by SASANO Takayoshi
parent f62ca022f2
commit 2399a6c0d5

@ -177,12 +177,15 @@ CPacketStream *CProtocol::GetStream(uint16 uiStreamId, const CIp *Ip)
if ( m_Streams[i]->GetStreamId() == uiStreamId ) if ( m_Streams[i]->GetStreamId() == uiStreamId )
{ {
// if Ip not NULL, also check if IP match // 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) )
{
if ( *Ip == *(m_Streams[i]->GetOwnerIp()) )
{ {
stream = m_Streams[i]; stream = m_Streams[i];
} }
} }
} }
}
// done // done
return stream; return stream;
} }

@ -52,7 +52,7 @@
#define VERSION_MAJOR 2 #define VERSION_MAJOR 2
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 2 #define VERSION_REVISION 3
// global ------------------------------------------------------ // global ------------------------------------------------------

Loading…
Cancel
Save

Powered by TurnKey Linux.