projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0df7390
)
Set SSH socket variable to NULL if connect() fails. Failure to do
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 27 Feb 2002 22:45:52 +0000
(22:45 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 27 Feb 2002 22:45:52 +0000
(22:45 +0000)
this was causing PSCP to hang indefinitely after reporting
Connection Refused.
git-svn-id: svn://svn.tartarus.org/sgt/putty@1569
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
270d76b
..
4fb0822
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-1873,8
+1873,10
@@
static char *connect_to_host(char *host, int port, char **realhost, int nodelay)
logevent(buf);
}
s = sk_new(addr, port, 0, 1, nodelay, &fn_table_ptr);
- if ((err = sk_socket_error(s)))
+ if ((err = sk_socket_error(s))) {
+ s = NULL;
return err;
+ }
#ifdef FWHACK
sk_write(s, "connect ", 8);