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

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