Changes to cope with trans->header_size being unsigned

This commit is contained in:
matt335672 2022-12-07 09:47:25 +00:00
parent b1147f5faa
commit 5d1cb432ca
2 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ libipm_msg_in_check_available(struct trans *trans, int *available)
}
else
{
int len = trans->in_s->end - trans->in_s->data; /* Data read so far */
unsigned int len = trans->in_s->end - trans->in_s->data; /* Data read so far */
if (len == trans->header_size)
{

View File

@ -172,7 +172,7 @@ xrdp_process_data_in(struct trans *self)
}
len = (int) (s->end - s->data);
if (pro->server_trans->header_size > len)
if (pro->server_trans->header_size > (unsigned int)len)
{
/* not enough data read yet */
break;
@ -192,7 +192,7 @@ xrdp_process_data_in(struct trans *self)
pro->server_trans->extra_flags = 3;
len = (int) (s->end - s->data);
if (pro->server_trans->header_size > len)
if (pro->server_trans->header_size > (unsigned int)len)
{
/* not enough data read yet */
break;