Skip to content

Commit

Permalink
get_key_material: fix style
Browse files Browse the repository at this point in the history
Reviewed-by: Felix Dörre <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Attila Fülöp <[email protected]>
Closes openzfs#12765
  • Loading branch information
AttilaFueloep authored and behlendorf committed Nov 30, 2021
1 parent 85638aa commit 861dca0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/libzfs/libzfs_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat,
}
break;
case ZFS_KEYFORMAT_PASSPHRASE:
/* verify the length is within bounds when setting a new key,
* but not when loading an existing key */
/*
* Verify the length is within bounds when setting a new key,
* but not when loading an existing key.
*/
if (!do_verify)
break;
if (keylen > MAX_PASSPHRASE_LEN) {
Expand Down

0 comments on commit 861dca0

Please sign in to comment.