libxrdp: work on fastpath input

This commit is contained in:
speidy
2014-02-10 05:48:03 +02:00
parent cbf5d50a5c
commit f525c0f8e7
5 changed files with 86 additions and 17 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ xrdp_fastpath_recv(struct xrdp_fastpath *self, struct stream *s)
}
// receive the left bytes
if (xrdp_tcp_recv(self->tcp_layer, s, len) != 0)
if (xrdp_tcp_recv(self->tcp_layer, s, len - (s->p - s->data)) != 0)
{
return 1;
}