summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/common/resolv/res_init.c
diff options
context:
space:
mode:
authorStacey Marshall <Stacey.Marshall@Sun.COM>2010-04-08 17:04:05 +0100
committerStacey Marshall <Stacey.Marshall@Sun.COM>2010-04-08 17:04:05 +0100
commit4e567b4443d7a1680a7319275e5288eef2c92319 (patch)
tree5a7c88423cf526f1dfc914a0b14a01d9dbc626be /usr/src/lib/libresolv2/common/resolv/res_init.c
parentb942e89b21c9ea698fd94b07082bee381672203d (diff)
downloadillumos-gate-4e567b4443d7a1680a7319275e5288eef2c92319.tar.gz
6936684 libresolv2 update breaks users of _res
6908650 ifconfig can't configure static ip address if dns before files in nsswitch.conf
Diffstat (limited to 'usr/src/lib/libresolv2/common/resolv/res_init.c')
-rw-r--r--usr/src/lib/libresolv2/common/resolv/res_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libresolv2/common/resolv/res_init.c b/usr/src/lib/libresolv2/common/resolv/res_init.c
index e839323a79..477f4f5f73 100644
--- a/usr/src/lib/libresolv2/common/resolv/res_init.c
+++ b/usr/src/lib/libresolv2/common/resolv/res_init.c
@@ -1,6 +1,5 @@
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
*/
@@ -615,6 +614,7 @@ __res_vinit(res_state statp, int preinit) {
return (statp->res_h_errno);
#ifdef SUNW_INITCHKIF
freedata:
+ RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
if (statp->_u._ext.ext != NULL) {
free(statp->_u._ext.ext);
statp->_u._ext.ext = NULL;