]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - raw.c
Tweak SSH protocol version refusal messages.
[PuTTY.git] / raw.c
diff --git a/raw.c b/raw.c
index 698d7e4f813f83103418da57dd89cd1198b1d918..a7fbbc5cc5f32e8c23feae149dc53c5a3193795a 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -50,6 +50,7 @@ static void raw_log(Plug plug, int type, SockAddr addr, int port,
        msg = dupprintf("Failed to connect to %s: %s", addrbuf, error_msg);
 
     logevent(raw->frontend, msg);
+    sfree(msg);
 }
 
 static void raw_check_close(Raw raw)
@@ -184,15 +185,10 @@ static const char *raw_init(void *frontend_handle, void **backend_handle,
 
        sfree(*realhost);
        *realhost = dupstr(loghost);
-       colon = strrchr(*realhost, ':');
-       if (colon) {
-           /*
-            * FIXME: if we ever update this aspect of ssh.c for
-            * IPv6 literal management, this should change in line
-            * with it.
-            */
+
+       colon = host_strrchr(*realhost, ':');
+       if (colon)
            *colon++ = '\0';
-       }
     }
 
     return NULL;