Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix KeyPair generation on first VirtualKeyPairProvider::generateKeyPa…
…ir call
  • Loading branch information
Eliezio Oliveira committed Jun 20, 2019
1 parent 3d093d1 commit 9bdfa76
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -71,10 +71,8 @@ public synchronized Iterable<KeyPair> loadKeys(final SessionContext session) {
algorithm, keySpecification, keySize, exception);
throw new IllegalArgumentException("An error occurred during generation of a new ke pair.", exception);
}
} else {
return Collections.singleton(generatedKeyPair);
}
return Collections.emptyList();
return Collections.singleton(generatedKeyPair);
}

/**
Expand Down

0 comments on commit 9bdfa76

Please sign in to comment.