mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-16 02:28:05 -05:00
Adam D Ligas's segfault: one form of connection closure was failing
to set SSH_STATE_CLOSED, causing subsequent resize events to go foom. [originally from svn r844]
This commit is contained in:
parent
1f22416c3c
commit
eac718ee1b
1
ssh.c
1
ssh.c
@ -1121,6 +1121,7 @@ static void ssh_gotdata(unsigned char *data, int datalen)
|
|||||||
static int ssh_receive(Socket skt, int urgent, char *data, int len) {
|
static int ssh_receive(Socket skt, int urgent, char *data, int len) {
|
||||||
if (!len) {
|
if (!len) {
|
||||||
/* Connection has closed. */
|
/* Connection has closed. */
|
||||||
|
ssh_state = SSH_STATE_CLOSED;
|
||||||
sk_close(s);
|
sk_close(s);
|
||||||
s = NULL;
|
s = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user