Blame SOURCES/0206-grub_ipv6_get_masksize-fix-loop-iteration-error.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Peter Jones <pjones@redhat.com>
a85e8e
Date: Mon, 11 Jul 2016 15:43:01 -0400
d41074
Subject: [PATCH] grub_ipv6_get_masksize: fix loop iteration error
a85e8e
a85e8e
Related: rhbz#1154226
a85e8e
a85e8e
Signed-off-by: Peter Jones <pjones@redhat.com>
a85e8e
---
a85e8e
 grub-core/net/net.c | 2 +-
a85e8e
 1 file changed, 1 insertion(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/net/net.c b/grub-core/net/net.c
d41074
index 81d3b6208cb..19a81bc9e78 100644
a85e8e
--- a/grub-core/net/net.c
a85e8e
+++ b/grub-core/net/net.c
a85e8e
@@ -983,7 +983,7 @@ grub_ipv6_get_masksize(grub_uint8_t *be_mask)
a85e8e
 
a85e8e
   mask = (grub_uint8_t *)mask16;
a85e8e
 
a85e8e
-  for (x = 15; x > 0; x++)
a85e8e
+  for (x = 15; x > 0; x--)
a85e8e
     {
a85e8e
       grub_uint8_t octet = mask[x];
a85e8e
       while (octet & 0x80)