diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-21 06:43:24 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-21 06:43:24 (GMT) |
commit | b82dab737eaa8d38fa8e3ac3689a16619f9160b4 (patch) | |
tree | cd7b882b3f0ba686deb39c1b653d98fafe092100 /abs/core/glibc/glibc-2.14-fix-resolver-crash-typo.patch | |
parent | 9b099f713d930c76cdf81e27a7956ff3c74dc697 (diff) | |
parent | 09ec7e57ac7f9907122de23be187b1f05d19a18f (diff) | |
download | linhes_pkgbuild-b82dab737eaa8d38fa8e3ac3689a16619f9160b4.zip linhes_pkgbuild-b82dab737eaa8d38fa8e3ac3689a16619f9160b4.tar.gz linhes_pkgbuild-b82dab737eaa8d38fa8e3ac3689a16619f9160b4.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/glibc/glibc-2.14-fix-resolver-crash-typo.patch')
-rw-r--r-- | abs/core/glibc/glibc-2.14-fix-resolver-crash-typo.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/glibc/glibc-2.14-fix-resolver-crash-typo.patch b/abs/core/glibc/glibc-2.14-fix-resolver-crash-typo.patch new file mode 100644 index 0000000..b5d86c7 --- /dev/null +++ b/abs/core/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 |