Don't send incomplete connection request packet on reconnect.
Fixes connection error when reconnecting after a network error or pending_resize disconnection.. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1787 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
f28bddc81b
commit
6364680a8c
7
iso.c
7
iso.c
@ -227,14 +227,7 @@ iso_connect(char *server, char *username, char *domain, char *password,
|
|||||||
if (!tcp_connect(server))
|
if (!tcp_connect(server))
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
if (reconnect)
|
|
||||||
{
|
|
||||||
iso_send_msg(ISO_PDU_CR);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
iso_send_connection_request(username, neg_proto);
|
iso_send_connection_request(username, neg_proto);
|
||||||
}
|
|
||||||
|
|
||||||
s = iso_recv_msg(&code, NULL);
|
s = iso_recv_msg(&code, NULL);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user