From 135d42ffee104f55fea0a2119f301c197c5f60dd Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 1 Feb 2021 13:43:52 -0800 Subject: [PATCH] dns.mitm: hint = {} fix in options --- stratosphere/ams_mitm/source/dns_mitm/dnsmitm_resolver_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_resolver_impl.cpp b/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_resolver_impl.cpp index 457b7073d..50e1eb831 100644 --- a/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_resolver_impl.cpp +++ b/stratosphere/ams_mitm/source/dns_mitm/dnsmitm_resolver_impl.cpp @@ -171,7 +171,7 @@ namespace ams::mitm::socket::resolver { LogDebug("[%016lx]: Redirecting %s:%u to %u.%u.%u.%u\n", this->client_info.program_id.value, hostname, port, (redirect_addr >> 0) & 0xFF, (redirect_addr >> 8) & 0xFF, (redirect_addr >> 16) & 0xFF, (redirect_addr >> 24) & 0xFF); const bool use_hint = serialized_hint.GetPointer() != nullptr; - struct addrinfo hint; + struct addrinfo hint = {}; if (use_hint) { AMS_ABORT_UNLESS(serializer::DNSSerializer::FromBuffer(hint, serialized_hint.GetPointer(), serialized_hint.GetSize()) >= 0); }