1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Copy state directly rather than dereferencing wl (which could be NULL).

This commit is contained in:
nicm 2015-12-15 14:32:55 +00:00
parent ac9778395f
commit 909b737289

View File

@ -834,8 +834,8 @@ cmd_find_copy_state(struct cmd_find_state *dst, struct cmd_find_state *src)
{
dst->s = src->s;
dst->wl = src->wl;
dst->idx = dst->wl->idx;
dst->w = dst->wl->window;
dst->idx = src->idx;
dst->w = src->w;
dst->wp = src->wp;
}