1092. [bug] libbind: get*by*() failed to check if res_init() had
been called.
1101. [bug] Array bounds read error in lwres_gai_strerror.
+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
*/
#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.3.2.1 2001/11/02 20:55:24 gson Exp $";
#endif
#include "port_before.h"
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);