X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/3ad9d396e3e57477b4da4b20665ca33edd5d7f67..e52455b1fd4e5a129cebe653a777b1f421b18b4f:/rlogin.c diff --git a/rlogin.c b/rlogin.c index 525d48d0..cee653ac 100644 --- a/rlogin.c +++ b/rlogin.c @@ -177,6 +177,9 @@ static void rlogin_size(void) { char b[12] = { '\xFF', '\xFF', 0x73, 0x73, 0, 0, 0, 0, 0, 0, 0, 0 }; + if (s == NULL) + return; + b[6] = cols >> 8; b[7] = cols & 0xFF; b[4] = rows >> 8;