Make sure we handle redirection PDU packet received
within rdp_connect() loop. Fixes silent exits of rdesktop when receiving a redirection PDU before license handling which is a corner case appeared while using CredSSP+Kerberos. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1825 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
78a4f41f48
commit
ee8366405d
@ -1133,6 +1133,7 @@ main(int argc, char *argv[])
|
||||
and therefor we just clear this error before we connect to redirected server.
|
||||
*/
|
||||
g_network_error = False;
|
||||
g_redirect = False;
|
||||
}
|
||||
|
||||
ui_init_connection();
|
||||
@ -1157,6 +1158,8 @@ main(int argc, char *argv[])
|
||||
continue;
|
||||
}
|
||||
|
||||
if (g_redirect)
|
||||
continue;
|
||||
|
||||
/* By setting encryption to False here, we have an encrypted login
|
||||
packet but unencrypted transfer of other packets */
|
||||
@ -1169,7 +1172,6 @@ main(int argc, char *argv[])
|
||||
tcp_run_ui(True);
|
||||
|
||||
deactivated = False;
|
||||
g_redirect = False;
|
||||
g_reconnect_loop = False;
|
||||
rdp_main_loop(&deactivated, &ext_disc_reason);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user