]> git.proxmox.com Git - grub2.git/commit
luks2: Use correct index variable when looping in luks2_get_keyslot()
authorGlenn Washburn <development@efficientek.com>
Sat, 7 Nov 2020 04:44:25 +0000 (22:44 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 20 Nov 2020 14:33:41 +0000 (15:33 +0100)
commitc28907e235262cc497d525aea57e357f29e52873
treea2665f899fa6221cb25185e59ddbd6b7051111b8
parent0eb44d3196bd1a6233b63ba7882dac67b80a2b8e
luks2: Use correct index variable when looping in luks2_get_keyslot()

The loop variable "j" should be used to index the digests and segments json
array, instead of the variable "i", which is the keyslot index.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/luks2.c