summaryrefslogtreecommitdiff
path: root/multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-22 23:03:32 +0000
committerroot <root@rshg047.dnsready.net>2011-06-22 23:03:32 +0000
commit7347bb994a41d021c83e97b503f577f2399302e7 (patch)
treefd148755348d31a3f7069526f91796c12ba7a2f5 /multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch
parent17dec629d8a13d1981d734ddc703efb5382ca309 (diff)
Wed Jun 22 23:03:32 UTC 2011
Diffstat (limited to 'multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch')
-rw-r--r--multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch b/multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch
new file mode 100644
index 000000000..b5d86c7d2
--- /dev/null
+++ b/multilib-testing/lib32-glibc/glibc-2.14-fix-resolver-crash-typo.patch
@@ -0,0 +1,22 @@
+diff --git a/resolv/res_send.c b/resolv/res_send.c
+index 97142b7..a001c1e 100644
+--- a/resolv/res_send.c
++++ b/resolv/res_send.c
+@@ -549,7 +549,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
+ ns, ansp, ansp2, nansp2, resplen2);
+ if (n < 0)
+ return (-1);
+- if (n == 0 && (buf2 == NULL || resplen2 == 0))
++ if (n == 0 && (buf2 == NULL || *resplen2 == 0))
+ goto next_ns;
+ } else {
+ /* Use datagrams. */
+@@ -559,7 +559,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
+ ansp2, nansp2, resplen2);
+ if (n < 0)
+ return (-1);
+- if (n == 0 && (buf2 == NULL || resplen2 == 0))
++ if (n == 0 && (buf2 == NULL || *resplen2 == 0))
+ goto next_ns;
+ if (v_circuit)
+ // XXX Check whether both requests failed or