diff options
Diffstat (limited to 'src/lib/libc/net/res_query.c')
| -rw-r--r-- | src/lib/libc/net/res_query.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c index db76821fc6..3cf7928302 100644 --- a/src/lib/libc/net/res_query.c +++ b/src/lib/libc/net/res_query.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: res_query.c,v 1.15 2001/06/27 00:58:55 lebel Exp $ */ | 1 | /* $OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * ++Copyright++ 1988, 1993 | 4 | * ++Copyright++ 1988, 1993 |
| @@ -60,7 +60,7 @@ | |||
| 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; |
| 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; |
| 62 | #else | 62 | #else |
| 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.15 2001/06/27 00:58:55 lebel Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $"; |
| 64 | #endif | 64 | #endif |
| 65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
| 66 | 66 | ||
| @@ -123,8 +123,11 @@ res_query(name, class, type, answer, anslen) | |||
| 123 | 123 | ||
| 124 | n = res_mkquery(QUERY, name, class, type, NULL, 0, NULL, | 124 | n = res_mkquery(QUERY, name, class, type, NULL, 0, NULL, |
| 125 | buf, sizeof(buf)); | 125 | buf, sizeof(buf)); |
| 126 | if (n > 0 && (_res.options & RES_USE_EDNS0) != 0) | 126 | if (n > 0 && ((_res.options & RES_USE_EDNS0) || |
| 127 | (_res.options & RES_USE_DNSSEC))) { | ||
| 127 | n = res_opt(n, buf, sizeof(buf), anslen); | 128 | n = res_opt(n, buf, sizeof(buf), anslen); |
| 129 | } | ||
| 130 | |||
| 128 | if (n <= 0) { | 131 | if (n <= 0) { |
| 129 | #ifdef DEBUG | 132 | #ifdef DEBUG |
| 130 | if (_res.options & RES_DEBUG) | 133 | if (_res.options & RES_DEBUG) |
