diff options
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.c')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 1326473fb7..0a0b112589 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getaddrinfo.c,v 1.27 2000/08/31 17:41:51 itojun Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.28 2001/06/11 10:05:58 itojun Exp $ */ |
2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -1511,6 +1511,7 @@ _yp_getaddrinfo(name, pai) | |||
1511 | 1511 | ||
1512 | extern const char *__hostalias __P((const char *)); | 1512 | extern const char *__hostalias __P((const char *)); |
1513 | extern int h_errno; | 1513 | extern int h_errno; |
1514 | extern int res_opt __P((int, u_char *, int, int)); | ||
1514 | 1515 | ||
1515 | /* | 1516 | /* |
1516 | * Formulate a normal query, send, and await answer. | 1517 | * Formulate a normal query, send, and await answer. |
@@ -1562,6 +1563,8 @@ res_queryN(name, target) | |||
1562 | 1563 | ||
1563 | n = res_mkquery(QUERY, name, class, type, NULL, 0, NULL, | 1564 | n = res_mkquery(QUERY, name, class, type, NULL, 0, NULL, |
1564 | buf, sizeof(buf)); | 1565 | buf, sizeof(buf)); |
1566 | if (n > 0 && (_res.options & RES_USE_EDNS0) != 0) | ||
1567 | n = res_opt(n, buf, sizeof(buf), anslen); | ||
1565 | if (n <= 0) { | 1568 | if (n <= 0) { |
1566 | #ifdef DEBUG | 1569 | #ifdef DEBUG |
1567 | if (_res.options & RES_DEBUG) | 1570 | if (_res.options & RES_DEBUG) |