]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - telnet.c
Fix handle leak in winhandl.c.
[PuTTY.git] / telnet.c
index 6a56da7745c246137aa57400d247002f9acb93ef..098db292cc05a0c9a64e50db80ecf04954f78a71 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -818,15 +818,10 @@ static const char *telnet_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;