mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
reject message with wrong connID
This commit is contained in:
parent
5eea4644e2
commit
96a241c7d3
1 changed files with 4 additions and 3 deletions
|
@ -173,7 +173,7 @@ void
|
||||||
comms_setConnID( CommsCtxt* comms, XP_U32 connID )
|
comms_setConnID( CommsCtxt* comms, XP_U32 connID )
|
||||||
{
|
{
|
||||||
comms->connID = connID;
|
comms->connID = connID;
|
||||||
XP_STATUSF( "set connID to %ld", connID );
|
XP_STATUSF( "set connID to %lx", connID );
|
||||||
} /* comms_setConnID */
|
} /* comms_setConnID */
|
||||||
|
|
||||||
CommsCtxt*
|
CommsCtxt*
|
||||||
|
@ -547,7 +547,7 @@ comms_checkIncommingStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
||||||
AddressRecord* recs = (AddressRecord*)NULL;
|
AddressRecord* recs = (AddressRecord*)NULL;
|
||||||
|
|
||||||
connID = stream_getU32( stream );
|
connID = stream_getU32( stream );
|
||||||
XP_STATUSF( "read connID of %ld", connID );
|
XP_STATUSF( "read connID of %lx", connID );
|
||||||
|
|
||||||
#ifdef BEYOND_IR
|
#ifdef BEYOND_IR
|
||||||
if ( addr->conType == COMMS_CONN_IP ) {
|
if ( addr->conType == COMMS_CONN_IP ) {
|
||||||
|
@ -600,7 +600,8 @@ comms_checkIncommingStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
||||||
channelNo, msgID );
|
channelNo, msgID );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
XP_STATUSF( "refusing non-matching connID; got %ld, wanted %ld",
|
validMessage = XP_FALSE;
|
||||||
|
XP_STATUSF( "refusing non-matching connID; got %lx, wanted %lx",
|
||||||
connID, comms->connID );
|
connID, comms->connID );
|
||||||
}
|
}
|
||||||
return validMessage;
|
return validMessage;
|
||||||
|
|
Loading…
Reference in a new issue