Skip to content

Commit 8583ba7

Browse files
authored
Remove null check for aws_pkcs11_lib_login_user (#611)
1 parent c9cb777 commit 8583ba7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/pkcs11_tls_op_handler.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,8 @@ struct aws_custom_key_op_handler *aws_pkcs11_tls_op_handler_new(
183183
goto done;
184184
}
185185

186-
if (pkcs_user_pin != NULL) {
187-
if (aws_pkcs11_lib_login_user(pkcs11_handler->lib, pkcs11_handler->session_handle, pkcs_user_pin)) {
188-
goto done;
189-
}
186+
if (aws_pkcs11_lib_login_user(pkcs11_handler->lib, pkcs11_handler->session_handle, pkcs_user_pin)) {
187+
goto done;
190188
}
191189

192190
if (aws_pkcs11_lib_find_private_key(

0 commit comments

Comments
 (0)