Get a private copy of the redirect cookie
We accidentally just changed the pointer rather than copying the
cookie in to our freshly allocated buffer. This caused problems
after 74b2129e
as we started freeing the stream buffers on
disconnect.
This commit is contained in:
parent
bc727e7ef1
commit
17363d9e4d
2
rdp.c
2
rdp.c
@ -1908,7 +1908,7 @@ process_redirect_pdu(STREAM s, RD_BOOL enhanced_redirect /*, uint32 * ext_disc_r
|
||||
g_redirect_cookie = xmalloc(g_redirect_cookie_len);
|
||||
|
||||
/* read cookie as is */
|
||||
in_uint8p(s, g_redirect_cookie, g_redirect_cookie_len);
|
||||
in_uint8a(s, g_redirect_cookie, g_redirect_cookie_len);
|
||||
|
||||
logger(Protocol, Debug, "process_redirect_pdu(), Read %d bytes redirection cookie",
|
||||
g_redirect_cookie_len);
|
||||
|
Loading…
Reference in New Issue
Block a user