diff --git a/c/meterpreter/source/extensions/stdapi/server/net/resolve.c b/c/meterpreter/source/extensions/stdapi/server/net/resolve.c index 17ea4f9c4..6146c1e21 100644 --- a/c/meterpreter/source/extensions/stdapi/server/net/resolve.c +++ b/c/meterpreter/source/extensions/stdapi/server/net/resolve.c @@ -37,7 +37,7 @@ DWORD resolve_host(const LPCSTR hostname, u_short ai_family, struct addrinfo **o struct addrinfo hints = { 0 }; hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = IPPROTO_UDP; - hints.ai_family = ai_family; + hints.ai_family = (int)ai_family; dprintf("Attempting to resolve '%s'", hostname); @@ -103,7 +103,7 @@ DWORD request_resolve_host(Remote *remote, Packet *packet) u_short ai_family = met_api->packet.get_tlv_value_uint(packet, TLV_TYPE_ADDR_TYPE); DWORD iResult = ERROR_SUCCESS; - struct addrinfo* result = NULL; + struct addrinfo* result; iResult = resolve_host(hostname, ai_family, &result); if (iResult != ERROR_SUCCESS || result == NULL) {