aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-06 15:10:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-06 15:10:10 +0000
commitaaf2cd95be5f05882b77e0db34c8d193eb23a5ad (patch)
tree1441a812e67e18f01b7a7ec551414f8a4f9f2f2a /main/libc0.9.32
parentf6943a052b9b948db5504836b86ae9c4401aae32 (diff)
downloadaports-aaf2cd95be5f05882b77e0db34c8d193eb23a5ad.tar.bz2
aports-aaf2cd95be5f05882b77e0db34c8d193eb23a5ad.tar.xz
main/libc0.9.32: fix resolv issues with ipv6
Diffstat (limited to 'main/libc0.9.32')
-rw-r--r--main/libc0.9.32/resolv.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/libc0.9.32/resolv.patch b/main/libc0.9.32/resolv.patch
new file mode 100644
index 0000000000..8b84177d17
--- /dev/null
+++ b/main/libc0.9.32/resolv.patch
@@ -0,0 +1,13 @@
+diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
+index 84289a6..5107dec 100644
+--- a/libc/inet/resolv.c
++++ b/libc/inet/resolv.c
+@@ -689,7 +689,7 @@ int attribute_hidden __decode_dotted(const unsigned char *packet,
+
+ if (used + b + 1 >= dest_len)
+ return -1;
+- if (offset + b + 1 >= packet_len)
++ if (offset + b >= packet_len)
+ return -1;
+ memcpy(dest + used, packet + offset, b);
+ offset += b;