projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
`realhost', passed back from all the backend init functions, was
[u/mdw/putty]
/
ssh.c
diff --git
a/ssh.c
b/ssh.c
index
9f0fe61
..
e120c15
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-1505,7
+1505,8
@@
static int ssh_receive(Plug plug, int urgent, char *data, int len)
/*
* Connect to specified host and port.
* Returns an error message, or NULL on success.
/*
* Connect to specified host and port.
* Returns an error message, or NULL on success.
- * Also places the canonical host name into `realhost'.
+ * Also places the canonical host name into `realhost'. It must be
+ * freed by the caller.
*/
static char *connect_to_host(char *host, int port, char **realhost)
{
*/
static char *connect_to_host(char *host, int port, char **realhost)
{
@@
-1545,7
+1546,7
@@
static char *connect_to_host(char *host, int port, char **realhost)
return err;
#ifdef FWHACK
return err;
#ifdef FWHACK
- *realhost =
FWhost
;
+ *realhost =
strdup(FWhost)
;
#endif
/*
#endif
/*