mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-11 14:53:11 -05:00
Fix a segfault when a PKCS#11 token is not found.
(cherry picked from commit 541d7bafe6)
This commit is contained in:
parent
0777eb04bf
commit
fb21f7d0e6
1 changed files with 3 additions and 0 deletions
|
|
@ -646,6 +646,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