mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-12 00:28:06 -05:00
Initialise some members of the Proxy_Socket structure that were left
uninitialised. This problem only showed up with mingw builds of PuTTY (maybe MSVCRT is more forgiving with malloc initialisation than CRTDLL?). The 'error' field was causing me most trouble, and I think the other two were necessary too before things started working. Note however that I don't fully understand the code, and that there are more uninitialised fields in the structure. [originally from svn r2029]
This commit is contained in:
parent
5aee6cf2af
commit
71a97ab286
6
proxy.c
6
proxy.c
@ -314,6 +314,12 @@ Socket new_connection(SockAddr addr, char *hostname,
|
||||
ret->remote_addr = addr;
|
||||
ret->remote_port = port;
|
||||
|
||||
/* XXX review these initialisations, and initialise other fields
|
||||
* in Proxy_Socket structure */
|
||||
ret->error = NULL;
|
||||
ret->pending_flush = 0;
|
||||
ret->freeze = 0;
|
||||
|
||||
bufchain_init(&ret->pending_input_data);
|
||||
bufchain_init(&ret->pending_output_data);
|
||||
bufchain_init(&ret->pending_oob_output_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user