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:
Brad Kim 2015-06-29 23:23:50 +09:00 committed by Norman Maurer
parent 6e2d2ce998
commit de07ce9d4a
1 changed files with 1 additions and 1 deletions

View File

@ -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);