diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2007-07-02 15:31:28 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2007-07-02 15:31:28 +0000 |
| commit | df4bef85a40eef2d1968b194d1d0e9e725c2f1db (patch) | |
| tree | 7e1dcb88d4c990f4758b24e3aaa656e649543bc8 /bind-9.5.0-errno-init.patch | |
| parent | 0d10e42407e6709fe41f65635b0e4c195e88d1b0 (diff) | |
- minor changes in default configuration ('pedantic' changes only)
- fix wrong errno assigment in __res_vinit function (#245857)
- removed wrong patch to #150288
Diffstat (limited to 'bind-9.5.0-errno-init.patch')
| -rw-r--r-- | bind-9.5.0-errno-init.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bind-9.5.0-errno-init.patch b/bind-9.5.0-errno-init.patch new file mode 100644 index 0000000..9c96ec0 --- /dev/null +++ b/bind-9.5.0-errno-init.patch @@ -0,0 +1,30 @@ +diff -up bind-9.5.0a5/lib/bind/resolv/res_init.c.errno bind-9.5.0a5/lib/bind/resolv/res_init.c +--- bind-9.5.0a5/lib/bind/resolv/res_init.c.errno 2007-07-02 14:55:54.000000000 +0200 ++++ bind-9.5.0a5/lib/bind/resolv/res_init.c 2007-07-02 14:57:03.000000000 +0200 +@@ -168,7 +168,7 @@ __res_vinit(res_state statp, int preinit + union res_sockaddr_union u[2]; + int maxns = MAXNS; + +- h_errno = 0; ++ RES_SET_H_ERRNO(statp, 0); + if (statp->_u._ext.ext != NULL) + res_ndestroy(statp); + +@@ -231,7 +231,7 @@ __res_vinit(res_state statp, int preinit + * to check our return code wont be able to make + * queries anyhow. + */ +- h_errno = statp->res_h_errno = NETDB_INTERNAL; ++ RES_SET_H_ERRNO(statp, NETDB_INTERNAL); + maxns = 0; + } + #ifdef RESOLVSORT +@@ -498,7 +498,7 @@ __res_vinit(res_state statp, int preinit + if ((cp = getenv("RES_OPTIONS")) != NULL) + res_setoptions(statp, cp, "env"); + statp->options |= RES_INIT; +- return (h_errno); ++ return (statp->res_h_errno); + } + + static void |
