make sure next_packet is not null
This commit is contained in:
+2
-1
@@ -122,7 +122,8 @@ libxrdp_process_data(struct xrdp_session* session)
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user