From: <he...@us...> - 2014-02-07 13:10:48
|
Revision: 1786 http://sourceforge.net/p/rdesktop/code/1786 Author: hean01 Date: 2014-02-07 13:10:45 +0000 (Fri, 07 Feb 2014) Log Message: ----------- Fix bug with broken auto reconnect packet, introduced in commit 1766. Modified Paths: -------------- rdesktop/trunk/rdp.c Modified: rdesktop/trunk/rdp.c =================================================================== --- rdesktop/trunk/rdp.c 2014-02-07 08:44:55 UTC (rev 1785) +++ rdesktop/trunk/rdp.c 2014-02-07 13:10:45 UTC (rev 1786) @@ -475,9 +475,9 @@ /* TS_EXTENDED_INFO_PACKET */ out_uint16_le(s, 2); /* clientAddressFamily = AF_INET */ out_uint16_le(s, len_ip); /* cbClientAddress, Length of client ip */ - rdp_out_unistr(s, ipaddr, len_ip); /* clientAddress */ + rdp_out_unistr(s, ipaddr, len_ip - 2); /* clientAddress */ out_uint16_le(s, len_dll); /* cbClientDir */ - rdp_out_unistr(s, "C:\\WINNT\\System32\\mstscax.dll", len_dll); /* clientDir */ + rdp_out_unistr(s, "C:\\WINNT\\System32\\mstscax.dll", len_dll - 2); /* clientDir */ /* TS_TIME_ZONE_INFORMATION */ tzone = (mktime(gmtime(&t)) - mktime(localtime(&t))) / 60; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |