reject message with wrong connID

This commit is contained in:
ehouse 2004-10-01 01:25:55 +00:00
parent 5eea4644e2
commit 96a241c7d3

View file

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