mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 12:22:05 -04:00
ensure clientstr is null-terminated
This commit is contained in:
parent
1540e42449
commit
364b349ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -4996,7 +4996,7 @@ fctx_create(dns_resolver_t *res, const dns_name_t *name, dns_rdatatype_t type,
|
|||
isc_sockaddr_format(client, fctx->clientstr,
|
||||
sizeof(fctx->clientstr));
|
||||
} else {
|
||||
memmove(fctx->clientstr, "<unknown>", sizeof("<unknown"));
|
||||
strlcpy(fctx->clientstr, "<unknown>", sizeof(fctx->clientstr));
|
||||
}
|
||||
fctx->ns_ttl = 0;
|
||||
fctx->ns_ttl_ok = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue