mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-26 16:47:31 -04:00
Fix a segfault when a PKCS#11 token is not found.
This commit is contained in:
parent
46cae09023
commit
541d7bafe6
1 changed files with 3 additions and 0 deletions
|
|
@ -644,6 +644,9 @@ pk11_get_best_token(pk11_optype_t optype) {
|
|||
token = best_eddsa_token;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (token == NULL) {
|
||||
return (0);
|
||||
}
|
||||
return (token->slotid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue