=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/finger/net.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/finger/net.c 1997/01/17 07:12:33 1.3 --- src/usr.bin/finger/net.c 1997/04/23 19:17:29 1.4 *************** *** 1,4 **** ! /* $OpenBSD: net.c,v 1.3 1997/01/17 07:12:33 millert Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: net.c,v 1.4 1997/04/23 19:17:29 millert Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. *************** *** 38,44 **** #ifndef lint /*static char sccsid[] = "from: @(#)net.c 5.5 (Berkeley) 6/1/90";*/ ! static char rcsid[] = "$OpenBSD: net.c,v 1.3 1997/01/17 07:12:33 millert Exp $"; #endif /* not lint */ #include --- 38,44 ---- #ifndef lint /*static char sccsid[] = "from: @(#)net.c 5.5 (Berkeley) 6/1/90";*/ ! static char rcsid[] = "$OpenBSD: net.c,v 1.4 1997/04/23 19:17:29 millert Exp $"; #endif /* not lint */ #include *************** *** 65,70 **** --- 65,72 ---- if (!(host = strrchr(name, '@'))) return; *host++ = NULL; + if (*host == NULL) + host = "localhost"; if (inet_aton(host, &sin.sin_addr) == 0) { hp = gethostbyname(host); if (hp == 0) {