summaryrefslogtreecommitdiffstats
path: root/main/uclibc/uclibc-0.9.30.1-resolv.patch
blob: 55b7d991e1502eb3f6ec3328e5f8bccb46115749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -ru uClibc-0.9.30.1.orig/libc/inet/resolv.c uClibc-0.9.30.1/libc/inet/resolv.c
--- uClibc-0.9.30.1.orig/libc/inet/resolv.c	2009-03-10 15:32:14.000000000 +0000
+++ uClibc-0.9.30.1/libc/inet/resolv.c	2009-03-10 15:39:20.000000000 +0000
@@ -1331,7 +1331,8 @@
 	i = __dns_lookup(dname, type, __nameserversXX, __nameserverXX, &packet, &a);
 
 	if (i < 0) {
-		h_errno = TRY_AGAIN;
+		if (!h_errno) /* TODO: can this ever happen? */
+			h_errno = TRY_AGAIN;
 		return -1;
 	}