diff options
author | peter <peter@FreeBSD.org> | 1996-08-30 01:17:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-30 01:17:47 +0000 |
commit | 0debdf16c219f58f64708ab9fd73cbb47efab413 (patch) | |
tree | 257b5a1d52a01c4b4c533444f0d6e7fc8130f821 | |
parent | bb412b1fc57980e61909bdb9a78adc9102f61e4b (diff) | |
download | FreeBSD-src-0debdf16c219f58f64708ab9fd73cbb47efab413.zip FreeBSD-src-0debdf16c219f58f64708ab9fd73cbb47efab413.tar.gz |
Hmm, well, whaddya know? ypserv was making calls to the undocumented
private internal _gethostbydnsname() resolver functions..
-rw-r--r-- | usr.sbin/ypserv/yp_dnslookup.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c index c578d6b..9f77980 100644 --- a/usr.sbin/ypserv/yp_dnslookup.c +++ b/usr.sbin/ypserv/yp_dnslookup.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $ + * $Id: yp_dnslookup.c,v 1.2 1996/05/31 16:01:49 wpaul Exp $ */ /* @@ -54,12 +54,9 @@ #include "yp_extern.h" #ifndef lint -static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.2 1996/05/01 02:37:46 wpaul Exp $"; +static const char rcsid[] = "$Id: yp_dnslookup.c,v 1.2 1996/05/31 16:01:49 wpaul Exp $"; #endif -extern struct hostent *_gethostbydnsname __P(( char * )); -extern struct hostent *_gethostbydnsaddr __P(( const char *, int, int )); - static char *parse(hp) struct hostent *hp; { @@ -91,7 +88,7 @@ char *yp_dnsname(address) if (strchr(address, '@')) return (NULL); - if ((hp = (struct hostent *)_gethostbydnsname(address)) == NULL) + if ((hp = (struct hostent *)_gethostbydnsname(address, AF_INET)) == NULL) return (NULL); return(parse(hp)); |