mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
treat an empty devID string as TYPE_NONE regardless of what the client claims.
This commit is contained in:
parent
e6cd2265df
commit
af89047969
1 changed files with 4 additions and 2 deletions
|
@ -385,8 +385,10 @@ processConnect( unsigned char* bufp, int bufLen, int socket, in_addr& addr )
|
|||
unsigned char devIDType = 0;
|
||||
if ( getNetByte( &bufp, end, &devIDType )
|
||||
&& 0 != devIDType ) {
|
||||
getNetString( &bufp, end, devID.m_devIDString );
|
||||
devID.m_devIDType = (DevIDType)devIDType;
|
||||
if ( getNetString( &bufp, end, devID.m_devIDString )
|
||||
&& 0 < devID.m_devIDString.length() ) {
|
||||
devID.m_devIDType = (DevIDType)devIDType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue