summaryrefslogtreecommitdiff
path: root/testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-16 11:12:15 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-08-16 11:12:15 -0300
commitb73709861e566f564c8cf5cde4b40bd3d17982d9 (patch)
tree116cd554c488357d4e905feb7f41983a88771517 /testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch
parentaf1b08b8cb081b88686b319a122aa5dbf096455f (diff)
parentea595018ba8ae00d7030ff296ec4f50e122d2ea9 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: multilib/libtool-multilib/PKGBUILD
Diffstat (limited to 'testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch')
-rw-r--r--testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch b/testing/glibc/glibc-2.14-fix-resolver-crash-typo.patch
new file mode 100644
index 000000000..b5d86c7d2
--- /dev/null
+++ b/testing/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