From: simon Date: Tue, 25 Sep 2001 20:07:55 +0000 (+0000) Subject: Another potential segfault fixed. Thanks RDB :-) X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/cf293dd490ce2144daf986e11e27df11bcc0dd9b Another potential segfault fixed. Thanks RDB :-) git-svn-id: svn://svn.tartarus.org/sgt/putty@1301 cda61777-01e9-0310-a592-d414129be87e --- 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;