mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-23 05:55:04 -05:00
ssh->mainchan can be NULL; try not to segfault in that situation.
[originally from svn r7705]
This commit is contained in:
parent
be8818b4bc
commit
4b178be3e9
5
ssh.c
5
ssh.c
@ -9082,8 +9082,9 @@ static void ssh_unthrottle(void *handle, int bufsize)
|
|||||||
ssh1_throttle(ssh, -1);
|
ssh1_throttle(ssh, -1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ssh2_set_window(ssh->mainchan,
|
if (ssh->mainchan)
|
||||||
ssh->mainchan->v.v2.locmaxwin - bufsize);
|
ssh2_set_window(ssh->mainchan,
|
||||||
|
ssh->mainchan->v.v2.locmaxwin - bufsize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user