mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-23 01:40:23 -05:00
1092. [bug] libbind: get*by*() failed to check if res_init() had
been called.
This commit is contained in:
parent
6bad645917
commit
769cd7d5dd
2 changed files with 6 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1092. [bug] libbind: get*by*() failed to check if res_init() had
|
||||
been called.
|
||||
|
||||
1091. [bug] libbind: misplaced va_end().
|
||||
|
||||
1090. [bug] libbind: dns_ho.c:add_hostent() was not returning
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
#if !defined(LINT) && !defined(CODECENTER)
|
||||
static const char rcsid[] = "$Id: irs_data.c,v 1.3 2001/07/04 08:10:23 marka Exp $";
|
||||
static const char rcsid[] = "$Id: irs_data.c,v 1.4 2001/11/01 04:03:40 marka Exp $";
|
||||
#endif
|
||||
|
||||
#include "port_before.h"
|
||||
|
|
@ -153,7 +153,8 @@ net_data_create(const char *conf_file) {
|
|||
if (net_data->res == NULL)
|
||||
return (NULL);
|
||||
|
||||
if (res_ninit(net_data->res) == -1)
|
||||
if ((net_data->res->options & RES_INIT) == 0 &&
|
||||
res_ninit(net_data->res) == -1)
|
||||
return (NULL);
|
||||
|
||||
return (net_data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue