mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Yet another possible segfault path in the backends fixed. I don't
_believe_ I'm still finding these. I have no idea what I was thinking when I wrote this stuff. [originally from svn r1162]
This commit is contained in:
6
telnet.c
6
telnet.c
@ -565,8 +565,10 @@ static void do_telnet_read(char *buf, int len)
|
||||
static int telnet_closing(Plug plug, char *error_msg, int error_code,
|
||||
int calling_back)
|
||||
{
|
||||
sk_close(s);
|
||||
s = NULL;
|
||||
if (s) {
|
||||
sk_close(s);
|
||||
s = NULL;
|
||||
}
|
||||
if (error_msg) {
|
||||
/* A socket error has occurred. */
|
||||
connection_fatal(error_msg);
|
||||
|
Reference in New Issue
Block a user