aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/resolv.patch
blob: 8b84177d174c72b69ec2e0fad92cb44c22bfba14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;