Fix invalid check arguments in 'OpenSslServerContext.setTicketKeys'
Motivation: Invalid checking arguments causes the function not to work. Modifications: Modified checking arguments. Result: Fixes #3922
This commit is contained in:
parent
6e2d2ce998
commit
de07ce9d4a
@ -331,7 +331,7 @@ public final class OpenSslServerContext extends SslContext {
|
||||
* Sets the SSL session ticket keys of this context.
|
||||
*/
|
||||
public void setTicketKeys(byte[] keys) {
|
||||
if (keys != null) {
|
||||
if (keys == null) {
|
||||
throw new NullPointerException("keys");
|
||||
}
|
||||
SSLContext.setSessionTicketKeys(ctx, keys);
|
||||
|
Loading…
Reference in New Issue
Block a user