summaryrefslogtreecommitdiffstats
path: root/libxrdp/xrdp_fastpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'libxrdp/xrdp_fastpath.c')
-rw-r--r--libxrdp/xrdp_fastpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxrdp/xrdp_fastpath.c b/libxrdp/xrdp_fastpath.c
index c8b4927d..0d5c58c3 100644
--- a/libxrdp/xrdp_fastpath.c
+++ b/libxrdp/xrdp_fastpath.c
@@ -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;
}