diff --git a/lib/dns/zone.c b/lib/dns/zone.c index e1375b4dbe..a74afcaf53 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -18682,7 +18682,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) { kd->all = ISC_FALSE; - n = sscanf(keystr, "%hd/", &keyid); + n = sscanf(keystr, "%hu/", &keyid); if (n == 0U) CHECK(ISC_R_FAILURE); @@ -18692,7 +18692,7 @@ dns_zone_keydone(dns_zone_t *zone, const char *keystr) { else CHECK(ISC_R_FAILURE); - n = sscanf(algstr, "%hhd", &alg); + n = sscanf(algstr, "%hhu", &alg); if (n == 0U) { DE_CONST(algstr, r.base); r.length = strlen(algstr);