Blame bind-9.5.0-errno-init.patch
|
Adam Tkac |
c90d3f |
diff -up bind-9.5.0a5/lib/bind/resolv/res_init.c.errno bind-9.5.0a5/lib/bind/resolv/res_init.c
|
|
Adam Tkac |
c90d3f |
--- bind-9.5.0a5/lib/bind/resolv/res_init.c.errno 2007-07-02 14:55:54.000000000 +0200
|
|
Adam Tkac |
c90d3f |
+++ bind-9.5.0a5/lib/bind/resolv/res_init.c 2007-07-02 14:57:03.000000000 +0200
|
|
Adam Tkac |
c90d3f |
@@ -168,7 +168,7 @@ __res_vinit(res_state statp, int preinit
|
|
Adam Tkac |
c90d3f |
union res_sockaddr_union u[2];
|
|
Adam Tkac |
c90d3f |
int maxns = MAXNS;
|
|
Adam Tkac |
c90d3f |
|
|
Adam Tkac |
c90d3f |
- h_errno = 0;
|
|
Adam Tkac |
c90d3f |
+ RES_SET_H_ERRNO(statp, 0);
|
|
Adam Tkac |
c90d3f |
if (statp->_u._ext.ext != NULL)
|
|
Adam Tkac |
c90d3f |
res_ndestroy(statp);
|
|
Adam Tkac |
c90d3f |
|
|
Adam Tkac |
c90d3f |
@@ -231,7 +231,7 @@ __res_vinit(res_state statp, int preinit
|
|
Adam Tkac |
c90d3f |
* to check our return code wont be able to make
|
|
Adam Tkac |
c90d3f |
* queries anyhow.
|
|
Adam Tkac |
c90d3f |
*/
|
|
Adam Tkac |
c90d3f |
- h_errno = statp->res_h_errno = NETDB_INTERNAL;
|
|
Adam Tkac |
c90d3f |
+ RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
|
|
Adam Tkac |
c90d3f |
maxns = 0;
|
|
Adam Tkac |
c90d3f |
}
|
|
Adam Tkac |
c90d3f |
#ifdef RESOLVSORT
|
|
Adam Tkac |
c90d3f |
@@ -498,7 +498,7 @@ __res_vinit(res_state statp, int preinit
|
|
Adam Tkac |
c90d3f |
if ((cp = getenv("RES_OPTIONS")) != NULL)
|
|
Adam Tkac |
c90d3f |
res_setoptions(statp, cp, "env");
|
|
Adam Tkac |
c90d3f |
statp->options |= RES_INIT;
|
|
Adam Tkac |
c90d3f |
- return (h_errno);
|
|
Adam Tkac |
c90d3f |
+ return (statp->res_h_errno);
|
|
Adam Tkac |
c90d3f |
}
|
|
Adam Tkac |
c90d3f |
|
|
Adam Tkac |
c90d3f |
static void
|