mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
2096. [bug] libbind: handle applications that fail to detect
res_init() failures better.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
||||
2096. [bug] libbind: handle applications that fail to detect
|
||||
res_init() failures better.
|
||||
|
||||
2095. [port] libbind: alway prototype inet_cidr_ntop_ipv6() and
|
||||
net_cidr_ntop_ipv6(). [RT #16388]
|
||||
|
||||
|
@@ -70,7 +70,7 @@
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
|
||||
static const char rcsid[] = "$Id: res_send.c,v 1.16 2006/03/08 04:06:12 marka Exp $";
|
||||
static const char rcsid[] = "$Id: res_send.c,v 1.17 2006/10/16 22:54:38 marka Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/*! \file
|
||||
@@ -300,7 +300,8 @@ res_nsend(res_state statp,
|
||||
highestFD = sysconf(_SC_OPEN_MAX) - 1;
|
||||
#endif
|
||||
|
||||
if (statp->nscount == 0) {
|
||||
/* No name servers or res_init() failure */
|
||||
if (statp->nscount == 0 || EXT(statp).ext == NULL) {
|
||||
errno = ESRCH;
|
||||
return (-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user