diff options
Diffstat (limited to 'src/lib/libc/net/res_send.c')
-rw-r--r-- | src/lib/libc/net/res_send.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c index d0f17af8ed..ab50559de6 100644 --- a/src/lib/libc/net/res_send.c +++ b/src/lib/libc/net/res_send.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_send.c,v 1.9 2000/06/22 07:31:18 itojun Exp $ */ | 1 | /* $OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1989, 1993 | 4 | * ++Copyright++ 1985, 1989, 1993 |
@@ -64,7 +64,7 @@ | |||
64 | static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; | 64 | static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; |
65 | static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; | 65 | static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; |
66 | #else | 66 | #else |
67 | static char rcsid[] = "$OpenBSD: res_send.c,v 1.9 2000/06/22 07:31:18 itojun Exp $"; | 67 | static char rcsid[] = "$OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $"; |
68 | #endif | 68 | #endif |
69 | #endif /* LIBC_SCCS and not lint */ | 69 | #endif /* LIBC_SCCS and not lint */ |
70 | 70 | ||
@@ -625,7 +625,8 @@ read_len: | |||
625 | * as we wish to receive answers from the first | 625 | * as we wish to receive answers from the first |
626 | * server to respond. | 626 | * server to respond. |
627 | */ | 627 | */ |
628 | if (_res.nscount == 1 || (try == 0 && ns == 0)) { | 628 | if (!(_res.options & RES_INSECURE1) && |
629 | (_res.nscount == 1 || (try == 0 && ns == 0))) { | ||
629 | /* | 630 | /* |
630 | * Connect only if we are sure we won't | 631 | * Connect only if we are sure we won't |
631 | * receive a response from another server. | 632 | * receive a response from another server. |