Skip to content

Commit

Permalink
Don't replace null password with default if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofarkas authored and ppkarwasz committed Sep 8, 2022
1 parent ca95a69 commit 390e335
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected KeyStore load() throws StoreConfigurationException {
final KeyStore ks = KeyStore.getInstance(this.keyStoreType);
final char[] password = this.getPasswordAsCharArray();
try {
ks.load(fin, password != null ? password : DEFAULT_PASSWORD);
ks.load(fin, password);
} finally {
if (password != null) {
Arrays.fill(password, '\0');
Expand Down

0 comments on commit 390e335

Please sign in to comment.