Skip to content

Commit 72173b2

Browse files
committed
bitlocker: Handle getting NULL passwords
1 parent f304132 commit 72173b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/bitlk/bitlk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,9 @@ static int bitlk_kdf(const char *password,
11321132
int i = 0;
11331133
int r = 0;
11341134

1135+
if (!password)
1136+
return -EINVAL;
1137+
11351138
memcpy(kdf.salt, salt, 16);
11361139

11371140
r = crypt_hash_init(&hd, BITLK_KDF_HASH);

0 commit comments

Comments
 (0)