* MAINTAINERS: Add myself to the write-after-approval list.

* ser-tcp.c (tcp_open): Use `localhost' as default host if no
        hostname is given.
This commit is contained in:
Corinna Vinschen
2001-08-02 09:08:03 +00:00
parent 962b3eada2
commit ad4571f3f3
3 changed files with 10 additions and 0 deletions

View File

@@ -63,6 +63,9 @@ tcp_open (struct serial *scb, const char *name)
hostname[tmp] = '\000'; /* Tie off host name */
port = atoi (port_str + 1);
if (!hostname[0])
strcpy (hostname, "localhost");
hostent = gethostbyname (hostname);
if (!hostent)