From 364b349ad2905d3d907ccb3af1339a8528c16653 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 5 Jun 2020 18:55:22 -0700 Subject: [PATCH] ensure clientstr is null-terminated --- lib/dns/resolver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index a6d0a65eab..5a1f0c9f06 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -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, "", sizeof("clientstr, "", sizeof(fctx->clientstr)); } fctx->ns_ttl = 0; fctx->ns_ttl_ok = false;