summaryrefslogtreecommitdiff
path: root/net/isboot-kmod/files/patch-isboot.c
blob: 4ee628a1e4e9bd2702480f56a67bda28523aaa5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- isboot.c.orig	2022-05-11 20:13:59 UTC
+++ isboot.c
@@ -127,13 +127,12 @@ isboot_is_v4addr(uint8_t *addr)
 int
 isboot_is_v4addr(uint8_t *addr)
 {
-	uint32_t n0, n1, n2, n3;
+	uint32_t n0, n1, n2;
 
 	/* RFC2373 2.5.4 */
 	n0 = be32toh(*(uint32_t *)(addr + 0));
 	n1 = be32toh(*(uint32_t *)(addr + 4));
 	n2 = be32toh(*(uint32_t *)(addr + 8));
-	n3 = be32toh(*(uint32_t *)(addr +12));
 	if (n0 == 0 && n1 == 0 && n2 == 0x0000ffffU)
 		return (1);	/* IPv4-mapped IPv6 */
 	else