summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_send.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2005-03-30 02:58:28 +0000
committertedu <tedu@openbsd.org>2005-03-30 02:58:28 +0000
commitec39ddb4424b6bc756d30ed05f0300b3e90a12a7 (patch)
tree89814f2e05c22c2bac04c30a405e7012ffce5efb /lib/libc/net/res_send.c
parentadd lladdr command to ifconfig to set MAC address. diffs from freebsd via (diff)
downloadwireguard-openbsd-ec39ddb4424b6bc756d30ed05f0300b3e90a12a7.tar.xz
wireguard-openbsd-ec39ddb4424b6bc756d30ed05f0300b3e90a12a7.zip
make the resolver stat resolv.conf and update if it changes.
useful feedback and ok deraadt@
Diffstat (limited to 'lib/libc/net/res_send.c')
-rw-r--r--lib/libc/net/res_send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index 04eb268d902..ee7ce430350 100644
--- a/lib/libc/net/res_send.c
+++ b/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);
}