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:
73ec3d6
)
Fixed clientNameLen initialization.
author
Armin Novak
<armin.novak@thincast.com>
Tue, 26 Jan 2016 08:34:22 +0000
(09:34 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Tue, 26 Jan 2016 08:34:22 +0000
(09:34 +0100)
libfreerdp/core/gateway/rdg.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/gateway/rdg.c
b/libfreerdp/core/gateway/rdg.c
index
2ede960
..
3f3bab8
100644
(file)
--- a/
libfreerdp/core/gateway/rdg.c
+++ b/
libfreerdp/core/gateway/rdg.c
@@
-200,12
+200,13
@@
BOOL rdg_send_tunnel_authorization(rdpRdg* rdg)
BOOL status;
WCHAR* clientName = NULL;
UINT16 clientNameLen;
- UINT32 packetSize
= 12 + clientNameLen * 2
;
+ UINT32 packetSize;
clientNameLen = ConvertToUnicode(CP_UTF8, 0, rdg->settings->ClientHostname, -1, &clientName, 0);
if (!clientName)
return FALSE;
+ packetSize = 12 + clientNameLen * 2 + sizeof(WCHAR);
s = Stream_New(NULL, packetSize);
if (!s)