From 3b040f7dfaf37c407ea6ede1c8c2092e6bf903fd Mon Sep 17 00:00:00 2001 From: tedu <> Date: Wed, 30 Mar 2005 02:58:28 +0000 Subject: make the resolver stat resolv.conf and update if it changes. useful feedback and ok deraadt@ --- src/lib/libc/net/res_send.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libc/net/res_send.c') diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c index 04eb268d90..ee7ce43035 100644 --- a/src/lib/libc/net/res_send.c +++ b/src/lib/libc/net/res_send.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send.c,v 1.17 2005/03/25 13:24:12 otto Exp $ */ +/* $OpenBSD: res_send.c,v 1.18 2005/03/30 02:58:28 tedu Exp $ */ /* * ++Copyright++ 1985, 1989, 1993 @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_send.c,v 1.17 2005/03/25 13:24:12 otto Exp $"; +static char rcsid[] = "$OpenBSD: res_send.c,v 1.18 2005/03/30 02:58:28 tedu Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -343,7 +343,7 @@ res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) int n; u_int badns; /* XXX NSMAX can't exceed #/bits in this var */ - if ((_resp->options & RES_INIT) == 0 && res_init() == -1) { + if (_res_init(0) == -1) { /* errno should have been set by res_init() in this case. */ return (-1); } -- cgit v1.2.3-55-g6feb