Break out of rdp main loop if server sent a redirect PDU.

This is needed on 2012r2 were server will not disconnect
a rdp connection after a redirect packet.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1777 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2013-12-10 11:16:56 +00:00
parent f5eac11fe8
commit c618390bbe

2
rdp.c
View File

@ -1670,7 +1670,7 @@ rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason)
{
while (rdp_loop(deactivated, ext_disc_reason))
{
if (g_pending_resize)
if (g_pending_resize || g_redirect)
{
return;
}