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:
Henrik Andersson 2014-02-07 14:08:00 +00:00
parent f28bddc81b
commit 6364680a8c

7
iso.c
View File

@ -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)