Changes to cope with trans->header_size being unsigned
This commit is contained in:
parent
b1147f5faa
commit
5d1cb432ca
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user