make sure next_packet is not null
This commit is contained in:
parent
25f5915a44
commit
f2f8bb727d
@ -122,7 +122,8 @@ libxrdp_process_data(struct xrdp_session* session)
|
|||||||
}
|
}
|
||||||
if (cont)
|
if (cont)
|
||||||
{
|
{
|
||||||
cont = session->s->next_packet < session->s->end;
|
cont = (session->s->next_packet != 0) &&
|
||||||
|
(session->s->next_packet < session->s->end);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
|
Loading…
Reference in New Issue
Block a user