1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Another missing initialisation.

This one spotted in the old-fashioned way, by actually attempting a
Plink raw connection and wondering why it didn't seem to be reading
from standard input! Turns out 'bufsize' is uninitialised until the
first send, which can inhibit any stdin reading if it gets a large
enough nonsense value.
This commit is contained in:
Simon Tatham 2014-11-22 16:35:54 +00:00
parent 6903e761d5
commit 91645175f7

1
raw.c
View File

@ -146,6 +146,7 @@ static const char *raw_init(void *frontend_handle, void **backend_handle,
raw->closed_on_socket_error = FALSE;
*backend_handle = raw;
raw->sent_console_eof = raw->sent_socket_eof = FALSE;
raw->bufsize = 0;
raw->frontend = frontend_handle;