Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd: use old passphrase to kill the luks slot
While adding a new encryption key to slot 1 if there exists a key in slot 1 which is not equal to the one we want to update it with, we kill the slot and then add the new key to it. While killing the slot, the existing code uses the new key, which is not valid in such cases. This patch modifies the code to use the key in slot 0 (the one that we know works) to kill the slot. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
- Loading branch information