Commit 1ceb14de authored by Natanael Copa's avatar Natanael Copa

core/uclibc: fix for resolv cname

parent 261f0239
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uclibc
pkgver=0.9.30.1
pkgrel=8
pkgrel=9
pkgdesc="C library for developing embedded Linux systems"
url=http://uclibc.org
license="LGPL-2"
......@@ -16,6 +16,7 @@ source="http://uclibc.org/downloads/$_mynamever.tar.bz2
0001-ldd-segfault-fix.patch
0001-linuxthreads-fixes-from-Will-Newton-will.newton-AT-g.patch
pthread-new-aliasing-fix.diff
uclibc-resolv-cname-fix.diff
ppoll.patch
uclibcconfig
"
......@@ -53,5 +54,6 @@ cf80c0d44a41e02f389be427ee615d61 uclibc-0.9.30.1-pthread_getattr_np.patch
4079b20c763727863bc53408e4988434 0001-ldd-segfault-fix.patch
bcd1c4c9c87f092fb4631559e6ec13ba 0001-linuxthreads-fixes-from-Will-Newton-will.newton-AT-g.patch
969187e1da84d0a0a5957b392a3d5a2b pthread-new-aliasing-fix.diff
bbb8475963e791f596c34c81ef5583d7 uclibc-resolv-cname-fix.diff
60738298e377295d359768a09adac0bb ppoll.patch
0a87f57d3e5001027f43b7c959d96319 uclibcconfig"
--- a/libc/inet/resolv.c.orig 2009-06-18 09:38:26.000000000 +0300
+++ b/libc/inet/resolv.c 2009-06-18 09:38:32.000000000 +0300
@@ -1337,10 +1337,9 @@ int res_query(const char *dname, int cla
free(a.dotted);
- if (a.atype == type) { /* CNAME */
- i = MIN(anslen, i);
- memcpy(answer, packet, i);
- }
+ i = MIN(anslen, i);
+ memcpy(answer, packet, i);
+
free(packet);
return i;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment