smartdns: fix valgrind warnings.

This commit is contained in:
Nick Peng
2023-02-17 22:09:38 +08:00
parent 694d093fc4
commit a62d716b10
2 changed files with 3 additions and 1 deletions

View File

@@ -4077,7 +4077,8 @@ _dns_server_process_dns64_callback(struct dns_request *request, struct dns_reque
pthread_mutex_unlock(&child_request->ip_map_lock);
return DNS_CHILD_POST_FAIL;
}
memset(new_addr_map, 0, sizeof(struct dns_ip_address));
new_addr_map->addr_type = DNS_T_AAAA;
addr_len = DNS_RR_AAAA_LEN;
memcpy(new_addr_map->ip_addr, dns_conf_dns_dns64.prefix, 16);