aboutsummaryrefslogtreecommitdiffstats
path: root/main/uclibc/uclibc-resolv-cname-fix.diff
blob: 041e150f35d3758d98c52af4db3324b678b7f4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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;
 }