treat an empty devID string as TYPE_NONE regardless of what the client claims.

This commit is contained in:
Eric House 2012-11-07 22:03:58 -08:00
parent e6cd2265df
commit af89047969

View file

@ -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;
}
}
}