mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:20:03 -04:00
parent
fae464f93f
commit
590a4026f0
1 changed files with 2 additions and 4 deletions
|
|
@ -1308,7 +1308,6 @@ isc_result_t
|
|||
dns_dnssec_findmatchingkeys(dns_name_t *origin, const char *directory,
|
||||
isc_mem_t *mctx, dns_dnsseckeylist_t *keylist)
|
||||
{
|
||||
const char *digits = "0123456789";
|
||||
isc_result_t result = ISC_R_SUCCESS;
|
||||
isc_boolean_t dir_open = ISC_FALSE;
|
||||
dns_dnsseckeylist_t list;
|
||||
|
|
@ -1345,11 +1344,10 @@ dns_dnssec_findmatchingkeys(dns_name_t *origin, const char *directory,
|
|||
|
||||
alg = 0;
|
||||
for (i = len + 1 + 1; i < dir.entry.length ; i++) {
|
||||
const char *digit = strchr(digits, dir.entry.name[i]);
|
||||
if (digit == NULL)
|
||||
if (dir.entry.name[i] < '0' || dir.entry.name[i] > '9')
|
||||
break;
|
||||
alg *= 10;
|
||||
alg += (int)(digit - digits);
|
||||
alg += dir.entry.name[i] - '0';
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue