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 nicman23 committed Aug 22, 2022
1 parent 166ede8 commit df77cc8
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 df77cc8

Please sign in to comment.