make result -1 if will otherwise trip asserts.

This commit is contained in:
Eric House 2019-02-26 18:46:55 -08:00
parent c05d8c43d2
commit 713d2e5634

View file

@ -90,6 +90,12 @@ and_xport_send( const XP_U8* buf, XP_U16 len, const XP_UCHAR* msgNo,
jbytes, jMsgNo, jaddr, jConType, gameID );
deleteLocalRefs( env, jaddr, jbytes, jMsgNo, jConType, DELETE_NO_REF );
}
if ( result < len ) {
XP_LOGF( "%s(): changing result %d to -1", __func__, result );
result = -1; /* signal failure. Not sure where 0's coming from */
}
LOG_RETURNF( "%d", result );
return result;
}