]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: Fix misplaced assert.
authorOndrej Kozina <okozina@redhat.com>
Mon, 31 May 2021 17:08:14 +0000 (19:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Jun 2021 20:40:32 +0000 (22:40 +0200)
commit26fbc5aa05562103bc96d87fd379b1dfc2951577
tree6e6b59ab671fbc4bf1d00876d405bd238eb470c6
parentb6fce22a676c52bcc030e768ccf3093fc2979325
cryptsetup: Fix misplaced assert.

Seems the assert should be placed in-before decrypted_key
pointer is passed to libcryptsetup API.

Original placement would trigger abort in case tpm2
hw was not present in the system while required
to activate crypt devices.
src/cryptsetup/cryptsetup.c