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

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