From 01a10425e6922508f6e01df01ea15ef6f6d09d43 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 21 Jun 2011 22:20:29 +0200 Subject: [PATCH] glibc: another patch to fix a bug in DNS resolver, patch from Arch. --- .../glibc-2.14-fix-resolver-crash-typo.patch | 22 +++++++++++++++++++ srcpkgs/glibc/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/glibc/patches/glibc-2.14-fix-resolver-crash-typo.patch diff --git a/srcpkgs/glibc/patches/glibc-2.14-fix-resolver-crash-typo.patch b/srcpkgs/glibc/patches/glibc-2.14-fix-resolver-crash-typo.patch new file mode 100644 index 00000000000..9642a537d33 --- /dev/null +++ b/srcpkgs/glibc/patches/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 +--- resolv/res_send.c ++++ 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 diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template index 6b481e00f97..922afb5026b 100644 --- a/srcpkgs/glibc/template +++ b/srcpkgs/glibc/template @@ -1,7 +1,7 @@ # Template file for 'glibc' pkgname=glibc version=2.14 -revision=2 +revision=3 distfiles="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.bz2" build_style=custom-install short_desc="The GNU C library"