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:
16a7613
)
Fixed zero sized allocation.
author
Armin Novak
<armin.novak@thincast.com>
Thu, 29 Nov 2018 10:06:41 +0000
(11:06 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Thu, 29 Nov 2018 11:11:33 +0000
(12:11 +0100)
libfreerdp/core/nego.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/nego.c
b/libfreerdp/core/nego.c
index
a1716a4
..
3676a78
100644
(file)
--- a/
libfreerdp/core/nego.c
+++ b/
libfreerdp/core/nego.c
@@
-1257,6
+1257,9
@@
void nego_enable_ext(rdpNego* nego, BOOL enable_ext)
BOOL nego_set_routing_token(rdpNego* nego, BYTE* RoutingToken, DWORD RoutingTokenLength)
{
+ if (RoutingTokenLength == 0)
+ return FALSE;
+
free(nego->RoutingToken);
nego->RoutingTokenLength = RoutingTokenLength;
nego->RoutingToken = (BYTE*) malloc(nego->RoutingTokenLength);