mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-22 05:25:03 -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
1
ssh.c
1
ssh.c
@ -9082,6 +9082,7 @@ static void ssh_unthrottle(void *handle, int bufsize)
|
|||||||
ssh1_throttle(ssh, -1);
|
ssh1_throttle(ssh, -1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (ssh->mainchan)
|
||||||
ssh2_set_window(ssh->mainchan,
|
ssh2_set_window(ssh->mainchan,
|
||||||
ssh->mainchan->v.v2.locmaxwin - bufsize);
|
ssh->mainchan->v.v2.locmaxwin - bufsize);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user