You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
752 B
28 lines
752 B
From eeccd94f448dda6996ff4b494557c4ad5fc716c5 Mon Sep 17 00:00:00 2001 |
|
From: Peter Jones <pjones@redhat.com> |
|
Date: Mon, 11 Jul 2016 15:43:01 -0400 |
|
Subject: [PATCH 206/237] grub_ipv6_get_masksize: fix loop iteration error |
|
|
|
Related: rhbz#1154226 |
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com> |
|
--- |
|
grub-core/net/net.c | 2 +- |
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
diff --git a/grub-core/net/net.c b/grub-core/net/net.c |
|
index 81d3b62..19a81bc 100644 |
|
--- a/grub-core/net/net.c |
|
+++ b/grub-core/net/net.c |
|
@@ -983,7 +983,7 @@ grub_ipv6_get_masksize(grub_uint8_t *be_mask) |
|
|
|
mask = (grub_uint8_t *)mask16; |
|
|
|
- for (x = 15; x > 0; x++) |
|
+ for (x = 15; x > 0; x--) |
|
{ |
|
grub_uint8_t octet = mask[x]; |
|
while (octet & 0x80) |
|
-- |
|
2.9.3 |
|
|
|
|