projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc3c91
)
fixed partial reads
author
Emmanuel Ledoux
<eledoux@hp.com>
Fri, 19 Oct 2018 09:56:56 +0000
(11:56 +0200)
committer
Emmanuel Ledoux
<eledoux@hp.com>
Fri, 19 Oct 2018 09:56:56 +0000
(11:56 +0200)
libfreerdp/core/gateway/rdg.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/gateway/rdg.c
b/libfreerdp/core/gateway/rdg.c
index
42fab41
..
b1bab48
100644
(file)
--- a/
libfreerdp/core/gateway/rdg.c
+++ b/
libfreerdp/core/gateway/rdg.c
@@
-79,10
+79,11
@@
static BOOL rdg_read_all(rdpTls* tls, BYTE* buffer, int size)
{
int status;
int readCount = 0;
+ BYTE* pBuffer = buffer;
while (readCount < size)
{
- status = BIO_read(tls->bio,
b
uffer, size - readCount);
+ status = BIO_read(tls->bio,
pB
uffer, size - readCount);
if (status <= 0)
{
@@
-93,6
+94,7
@@
static BOOL rdg_read_all(rdpTls* tls, BYTE* buffer, int size)
}
readCount += status;
+ pBuffer += status;
}
return TRUE;