projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ssh->mainchan can be NULL; try not to segfault in that situation.
[u/mdw/putty]
/
ssh.c
diff --git
a/ssh.c
b/ssh.c
index
f78ffbe
..
a2aeb54
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-9082,8
+9082,9
@@
static void ssh_unthrottle(void *handle, int bufsize)
ssh1_throttle(ssh, -1);
}
} else {
- ssh2_set_window(ssh->mainchan,
- ssh->mainchan->v.v2.locmaxwin - bufsize);
+ if (ssh->mainchan)
+ ssh2_set_window(ssh->mainchan,
+ ssh->mainchan->v.v2.locmaxwin - bufsize);
}
}