projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rainer Loritz noticed that the Telnet environment box is not cleared
[u/mdw/putty]
/
telnet.c
diff --git
a/telnet.c
b/telnet.c
index
b00a6da
..
04cbec0
100644
(file)
--- a/
telnet.c
+++ b/
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);