Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
2471197
http2: wait for session to finish writing before destroy
lundibundi Dec 7, 2019
e85ca7a
http2: wait for session socket writable end on close/destroy
lundibundi Dec 8, 2019
82af8ac
http2,doc: minor fixes
mildsunrise Apr 27, 2020
bfce0eb
Revert "http2: streamline OnStreamRead streamline memory accounting"
Trott Jul 11, 2020
b732c92
http2: use and support non-empty DATA frame with END_STREAM flag
clshortfuse Jun 14, 2020
f10d721
http: reset headers timeout on headers complete
ronag Jul 31, 2020
fb9b66b
doc: fix typos in n-api, tls and worker_threads
jucke Jul 18, 2020
b644ab6
doc: fix line length in worker_threads.md
jucke Jul 18, 2020
c8a7789
http2: avoid unnecessary buffer resize
lundibundi Jul 22, 2020
70768ce
repl: give repl entries unique names
bmeck Jul 14, 2020
12d76b8
tls: reset secureConnecting on client socket
davedoesdev May 2, 2020
02787ce
test: add ALPNProtocols option to clientOptions
lpinca Oct 3, 2020
decfc2a
fs: add .ref() and .unref() methods to watcher classes
rickyes Apr 28, 2020
8a10916
stream: destroy wrapped streams on error
ronag Jun 28, 2020
d477e2e
http: only set keep-alive when not exists
atian25 Oct 13, 2020
cce4645
http: added scheduling option to http agent
delvedor May 7, 2020
9eb1fa1
module: named exports for CJS via static analysis
guybedford May 15, 2020
6ca8fb5
module: refine module type mismatch error cases
guybedford Sep 30, 2020
a18d0df
module: update to cjs-module-lexer@0.4.0
guybedford Oct 4, 2020
7510667
doc: rename module pages
aduh95 Aug 7, 2020
7c1700e
doc: move package config docs to separate page
aduh95 Aug 7, 2020
d6a13a9
doc: document support for package.json fields
aduh95 Aug 7, 2020
41af927
module: exports pattern support
guybedford Aug 12, 2020
5f0b157
doc: edit subpath export patterns introduction
Trott Sep 18, 2020
5330930
doc: refine require/import conditions constraints
guybedford Sep 23, 2020
f507ca9
doc: packages docs feedback
guybedford Sep 27, 2020
9197a66
doc: copyedit packages.md
Trott Sep 30, 2020
a7e66b6
doc: fix conditional exports flag removal version
aduh95 Sep 30, 2020
66f8730
doc: add history entry for exports patterns
aduh95 Sep 29, 2020
985b96a
doc,esm: add history support info
aduh95 Sep 28, 2020
1ff956f
module: remove experimental modules warning
guybedford Feb 26, 2020
1f34230
doc,esm: document experimental warning removal
aduh95 Oct 22, 2020
0f757bc
esm: use "node:" namespace for builtins
guybedford Sep 28, 2020
68c5ee4
doc: update fs promise-based examples
richardlau Oct 22, 2020
a9a606f
lib: use full URL to GitHub issues in comments
Trott Aug 8, 2020
f22672d
errors: improve ERR_INVALID_OPT_VALUE error
lundibundi Aug 7, 2020
44c739c
deps: V8: cherry-pick 6be2f6e26e8d
Sep 4, 2020
607f3c5
test: fix comment about DNS lookup test
tniessen Sep 6, 2020
85c47d7
doc: avoid double-while sentence in perf_hooks.md
Trott Sep 6, 2020
992af4e
module: fix specifier resolution option value
himself65 Sep 8, 2020
5405e62
deps: update to uvwasi 0.0.11
cjihrig Sep 8, 2020
548137f
errors: simplify ERR_REQUIRE_ESM message generation
Trott Sep 9, 2020
884755f
doc: simplify circular dependencies text in modules.md
Trott Sep 9, 2020
c3e1bf7
test: add wasi readdir() test
cjihrig Sep 1, 2020
d938e85
n-api: add more property defaults
Flarna Sep 15, 2020
11b10d7
tools,doc: upgrade dependencies
aduh95 Sep 17, 2020
f297174
tools,doc: enforce alphabetical order for md refs
aduh95 Sep 17, 2020
bc7da0c
tools: ignore build folder when checking links
Sep 23, 2020
cc11464
deps: upgrade to c-ares v1.16.1
codebytere Sep 24, 2020
b0e43c7
doc: add gpg key export directions to releases doc
danielleadams Sep 22, 2020
cf07a86
deps: upgrade to libuv 1.40.0
cjihrig Sep 25, 2020
fdc67eb
test: replace annonymous functions with arrow
PoojaDurgad Aug 25, 2020
a9ce9b2
tools: update ESLint to 7.10.0
cjihrig Sep 26, 2020
ae14923
tools: exclude gyp from markdown link checker
targos Sep 30, 2020
2e766a6
console: add Symbol.toStringTag property
Leko Sep 28, 2020
c192af6
doc: unhide resolver spec
guybedford Sep 26, 2020
42c0dfc
doc: importable node protocol URLs
bmeck Sep 30, 2020
8be289e
doc: update contact information for richardlau
richardlau Oct 1, 2020
edf3fbb
doc: update contact information for @BethGriggs
BethGriggs Oct 1, 2020
cd80195
src: make MakeCallback() check can_call_into_js before getting method
addaleax Sep 30, 2020
a6f58c0
crypto: set env values in KeyObject Deserialize method
ThakurKarthik Sep 28, 2020
e70b052
src: remove invalid ToLocalChecked in EmitBeforeExit
addaleax Oct 3, 2020
0a1474d
deps: update llhttp to 2.1.3
indutny Sep 30, 2020
19d7113
fs: simplify realpathSync
himself65 Sep 29, 2020
370f8e3
doc: update sxa's email address to Red Hat from IBM
Oct 1, 2020
76f7601
module: fix builtin reexport tracing
guybedford Oct 4, 2020
b5f7525
doc: update AUTHORS list
addaleax Sep 21, 2020
0955267
tools: add missing uv_setup_argv() calls
addaleax Oct 4, 2020
ade27b7
src: use env->ThrowUVException in pipe_wrap
jasnell Oct 4, 2020
7f8834f
src: more idiomatic error pattern in node_wasi
jasnell Oct 4, 2020
ad7281b
lib: use remaining typed arrays from primordials
targos Sep 28, 2020
6952c45
doc: add aduh95 to collaborators
aduh95 Oct 7, 2020
5faaa60
n-api: support for object freeze/seal
codebytere Sep 26, 2020
dec004f
src: expose v8::Isolate setup callbacks
codebytere Oct 5, 2020
2d5393b
src: fix freeing unintialized pointer bug in ParseSoaReply
AasthaGupta Oct 4, 2020
48bc3fc
build: improved release lint error message
codebytere Oct 6, 2020
6efa140
lib: change http client path assignment
dekinderfiets Oct 5, 2020
fb9bb05
doc: fix util.inspect change history
aduh95 Oct 6, 2020
42c4795
doc: use sentence case for class property
Trott Oct 7, 2020
f3a0457
build: fuzzer that targets node::LoadEnvironment()
DavidKorczynski Aug 19, 2020
05db4b8
doc: improve SIGINT error text
Trott Oct 8, 2020
992355c
doc: simplify wording in tracing APIs doc
PoojaDurgad Oct 8, 2020
b741f2f
src: move node_process to modern THROW_ERR*
jasnell Oct 2, 2020
e9bee39
src: move node_contextify to modern THROW_ERR_*
jasnell Oct 2, 2020
1173efc
tools: bump cpplint.py to 1.4.6
Trott Oct 9, 2020
adf4f90
tools: refloat 7 Node.js patches to cpplint.py
Trott Oct 9, 2020
a0b541c
doc: use kbd element in process doc
Trott Oct 10, 2020
5fea51b
doc: add PoojaDurgad as a triager
PoojaDurgad Sep 11, 2020
a3e8829
inspector: do not hardcode Debugger.CallFrameId in tests
dgozman Oct 9, 2020
42f64eb
crypto: update certdata to NSS 3.56
codebytere Oct 7, 2020
a9ac754
doc: add symlink information for process.execpath
PoojaDurgad Oct 10, 2020
bfff4fc
doc: revise description of process.ppid
PoojaDurgad Oct 10, 2020
42a587f
doc: use test username instead of real
PoojaDurgad Oct 12, 2020
df52814
doc: document Buffer.concat may use internal pool
puzpuzpuz Oct 7, 2020
a93ca2d
n-api: revert change to finalization
mhdawson Oct 23, 2020
354f358
module: use Wasm CJS lexer when available
guybedford Oct 10, 2020
7a98961
esm: fix hook mistypes and links to types
DerekNonGeneric Jul 7, 2020
ea23939
module: cjs-module-lexer@0.4.1 big endian fix
guybedford Oct 13, 2020
d7f0e3e
deps: update to cjs-module-lexer@0.4.3
guybedford Oct 21, 2020
5b8d3c7
deps: upgrade to cjs-module-lexer@0.5.0
guybedford Oct 29, 2020
bdcc77b
deps: update to cjs-module-lexer@0.5.2
guybedford Oct 31, 2020
6539cf2
deps: upgrade to cjs-module-lexer@1.0.0
guybedford Nov 2, 2020
d991200
doc: error code fix in resolver spec
guybedford Aug 31, 2020
1a8f3a8
doc: copyedit esm.md
Trott Sep 29, 2020
b50b34b
doc: put release script specifics in details
MylesBorins Sep 18, 2020
77555d8
doc: put landing specifics in details tag
Trott Sep 25, 2020
18f01dd
repl: improve static import error message in repl
MylesBorins May 27, 2020
f0b06b6
doc: move module core module doc to separate page
aduh95 Aug 7, 2020
7dc3b74
doc: add ESM examples in `module` API doc page
aduh95 Aug 22, 2020
b4941cf
doc: make minor improvements to module.md
Trott Sep 6, 2020
79f3c32
doc: fix broken links in modules.md
Trott Sep 14, 2020
1cd1d01
doc: move package.import content higher
MylesBorins Oct 7, 2020
9024436
crypto: fix KeyObject garbage collection
addaleax Oct 3, 2020
b78a1a1
doc: update releaser in v12.18.4 changelog
BethGriggs Sep 15, 2020
c6eb0b6
benchmark: ignore build artifacts for napi addons
richardlau Nov 4, 2020
b484732
events: assume an EventEmitter if emitter.on is a function
lpinca Oct 26, 2020
d84392f
2020-11-24, Version 12.20.0 'Erbium' (LTS)
MylesBorins Nov 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: upgrade to c-ares v1.16.1
PR-URL: #35324
Refs: https://github.com/c-ares/c-ares/releases/tag/cares-1_16_1
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
codebytere authored and MylesBorins committed Nov 16, 2020
commit cc11464b4e9f6b37aacd66b58fa399e7c30d350c
4 changes: 2 additions & 2 deletions deps/cares/include/ares_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

#define ARES_VERSION_MAJOR 1
#define ARES_VERSION_MINOR 16
#define ARES_VERSION_PATCH 0
#define ARES_VERSION_PATCH 1
#define ARES_VERSION ((ARES_VERSION_MAJOR<<16)|\
(ARES_VERSION_MINOR<<8)|\
(ARES_VERSION_PATCH))
#define ARES_VERSION_STR "1.16.0"
#define ARES_VERSION_STR "1.16.1"

#if (ARES_VERSION >= 0x010700)
# define CARES_HAVE_ARES_LIBRARY_INIT 1
Expand Down
99 changes: 22 additions & 77 deletions deps/cares/src/RELEASE-NOTES
Original file line number Diff line number Diff line change
@@ -1,85 +1,30 @@
c-ares version 1.16.0
c-ares version 1.16.1

Security:
o Prevent possible use-after-free and double-free in ares_getaddrinfo() if
ares_destroy() is called prior to ares_getaddrinfo() completing. Reported
by Jann Horn at Google Project Zero.

Changes:
o Introduction of ares_getaddrinfo() API which provides similar output
(including proper sorting as per RFC 6724) to the system native API, but
utilizes different data structures in order to provide additional information
such as TTLs and all aliases. Please reference the respective man pages for
usage details. [3] [4] [5] [7] [8] [13] [14] [15] [16] [17] [22]
o Parse SOA records from ns_t_any response [29] [30]
o CMake: Provide c-ares version in package export file [24]
o CMake: Add CPACK functionality for DEB and RPM [28]
o CMake: Generate PDB files during build [33] [34]
o CMake: Support manpage installation [37] [38]
o Allow TXT records on CHAOS qclass. Used for retriving things like
version.bind, version.server, authoris.bind, hostname.bind, and id.server.
[3]

Bug fixes:
o Fix bad expectation in IPv6 localhost test. [1] [2]
o AutoTools: use XC_CHECK_BUILD_FLAGS instead of XC_CHECK_USER_FLAGS to prevent
complaints about CPPFLAGS in CFLAGS. [6]
o Fix .onion handling
o Command line usage was out of date for adig and ahost. [18]
o Typos in manpages [19] [20]
o If ares_getenv is defined, it must return a value on all platforms [21]
o If /etc/resolv.conf has invalid lookup values, use the defaults. [23]
o Tests: Separate live tests from SetServers* tests as only live tests should
require internet access. [25]
o ares_gethostbyname() should return ENODATA if no valid A or AAAA record is
found, but a CNAME was found. [26] [27]
o CMake: Rework library function checking to prevent unintended linking with
system libraries that aren't needed. [31] [32]
o Due to use of inet_addr() it was not possible to return 255.255.255.255 from
ares_gethostbyname(). [35] [36]
o CMake: Fix building of tests on Windows
o Fix Windows Unicode incompatibilities with ares_getaddrinfo() [1]
o Silence false cast-align compiler warnings due to valid casts of
struct sockaddr to struct sockaddr_in and struct sockaddr_in6.
o MacOS should use libresolv for retrieving DNS servers, like iOS
o CMake build system should populate the INCLUDE_DIRECTORIES property of
installed targets [2]
o Correct macros in use for the ares_getaddrinfo.3 man page

Thanks go to these friendly people for their efforts and contributions:
Abhishek Arya (@inferno-chromium), Adam Majer (@AdamMajer),
Andrew Selivanov (@ki11roy), Ben Noordhuis (@bnoordhuis),
Brad House (@bradh352), Christian Ammer (@ChristianAmmer), Dan Noé (@dnoe),
Daniel Stenberg (@bagder), Darrin Cullop (@dwcullop),
Dron Rathore (@DronRathore), Fabrice Fontaine (@ffontaine),
Gregor Jasny (@gjasny), @kedixa, Khaidi Chu (@XadillaX),
Kyle Edwards (@KyleFromKitware), @lifenjoiner, Michal Rostecki (@mrostecki),
Peter Eisentraut (@petere), Piotr Pietraszkiewicz (@ppietrasa),
Stephen Bryant (@bf-bryants), @tjwalton, Vy Nguyen (@oontvoo)
(22 contributors)
Brad House (@bradh352), Daniel Stenberg (@bagder), Dmitry Igrishin (@dmitigr),
Jann Horn, Shelly Vohr, Teemu R (@rytilahti)
(6 contributors)

References to bug reports and discussions on issues:
[1] = https://github.com/c-ares/c-ares/pull/227
[2] = https://github.com/c-ares/c-ares/issues/85
[3] = https://github.com/c-ares/c-ares/pull/112
[4] = https://github.com/c-ares/c-ares/pull/233
[5] = https://github.com/c-ares/c-ares/pull/234
[6] = https://github.com/c-ares/c-ares/pull/236
[7] = https://github.com/c-ares/c-ares/pull/235
[8] = https://github.com/c-ares/c-ares/pull/239
[9] = https://github.com/c-ares/c-ares/pull/241
[10] = https://github.com/c-ares/c-ares/pull/187
[11] = https://github.com/c-ares/c-ares/pull/252
[12] = https://github.com/c-ares/c-ares/issues/251
[13] = https://github.com/c-ares/c-ares/pull/258
[14] = https://github.com/c-ares/c-ares/pull/257
[15] = https://github.com/c-ares/c-ares/pull/262
[16] = https://github.com/c-ares/c-ares/pull/264
[17] = https://github.com/c-ares/c-ares/pull/265
[18] = https://github.com/c-ares/c-ares/pull/256
[19] = https://github.com/c-ares/c-ares/pull/269
[20] = https://github.com/c-ares/c-ares/pull/275
[21] = https://github.com/c-ares/c-ares/pull/279
[22] = https://github.com/c-ares/c-ares/pull/290
[23] = https://github.com/c-ares/c-ares/pull/274
[24] = https://github.com/c-ares/c-ares/pull/296
[25] = https://github.com/c-ares/c-ares/pull/299
[26] = https://github.com/c-ares/c-ares/pull/304
[27] = https://github.com/c-ares/c-ares/issues/303
[28] = https://github.com/c-ares/c-ares/pull/283
[29] = https://github.com/c-ares/c-ares/pull/103
[30] = https://github.com/c-ares/c-ares/issues/102
[31] = https://github.com/c-ares/c-ares/pull/310
[32] = https://github.com/c-ares/c-ares/issues/307
[33] = https://github.com/c-ares/c-ares/pull/311
[34] = https://github.com/c-ares/c-ares/issues/245
[35] = https://github.com/c-ares/c-ares/issues/309
[36] = https://github.com/c-ares/c-ares/pull/312
[37] = https://github.com/c-ares/c-ares/issues/297
[38] = https://github.com/c-ares/c-ares/pull/314

[1] = https://github.com/c-ares/c-ares/pull/328
[2] = https://github.com/c-ares/c-ares/pull/323
[3] = https://github.com/c-ares/c-ares/pull/321
13 changes: 7 additions & 6 deletions deps/cares/src/ares_getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,11 @@ static void end_hquery(struct host_query *hquery, int status)
{
if (next->ai_family == AF_INET)
{
((struct sockaddr_in *)next->ai_addr)->sin_port = htons(hquery->port);
(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr))->sin_port = htons(hquery->port);
}
else
{
((struct sockaddr_in6 *)next->ai_addr)->sin6_port = htons(hquery->port);
(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr))->sin6_port = htons(hquery->port);
}
next = next->ai_next;
}
Expand Down Expand Up @@ -456,18 +456,18 @@ static int file_lookup(struct host_query *hquery)
char tmp[MAX_PATH];
HKEY hkeyHosts;

if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ,
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, WIN_NS_NT_KEY, 0, KEY_READ,
&hkeyHosts) == ERROR_SUCCESS)
{
DWORD dwLength = MAX_PATH;
RegQueryValueEx(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp,
RegQueryValueExA(hkeyHosts, DATABASEPATH, NULL, NULL, (LPBYTE)tmp,
&dwLength);
ExpandEnvironmentStrings(tmp, PATH_HOSTS, MAX_PATH);
ExpandEnvironmentStringsA(tmp, PATH_HOSTS, MAX_PATH);
RegCloseKey(hkeyHosts);
}
}
else if (platform == WIN_9X)
GetWindowsDirectory(PATH_HOSTS, MAX_PATH);
GetWindowsDirectoryA(PATH_HOSTS, MAX_PATH);
else
return ARES_ENOTFOUND;

Expand Down Expand Up @@ -548,6 +548,7 @@ static void host_callback(void *arg, int status, int timeouts,
else if (status == ARES_EDESTRUCTION)
{
end_hquery(hquery, status);
return;
}

if (!hquery->remaining)
Expand Down
4 changes: 2 additions & 2 deletions deps/cares/src/ares_getnameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa,
if ((sa->sa_family == AF_INET) &&
(salen == sizeof(struct sockaddr_in)))
{
addr = (struct sockaddr_in *)sa;
addr = CARES_INADDR_CAST(struct sockaddr_in *, sa);
port = addr->sin_port;
}
else if ((sa->sa_family == AF_INET6) &&
(salen == sizeof(struct sockaddr_in6)))
{
addr6 = (struct sockaddr_in6 *)sa;
addr6 = CARES_INADDR_CAST(struct sockaddr_in6 *, sa);
port = addr6->sin6_port;
}
else
Expand Down
4 changes: 2 additions & 2 deletions deps/cares/src/ares_parse_a_reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
{
hostent->h_addr_list[i] = (char *)&addrs[i];
memcpy(hostent->h_addr_list[i],
&(((struct sockaddr_in *)next->ai_addr)->sin_addr),
&(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr)->sin_addr),
sizeof(struct in_addr));
if (naddrttls && i < *naddrttls)
{
Expand All @@ -173,7 +173,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
addrttls[i].ttl = next->ai_ttl;

memcpy(&addrttls[i].ipaddr,
&(((struct sockaddr_in *)next->ai_addr)->sin_addr),
&(CARES_INADDR_CAST(struct sockaddr_in *, next->ai_addr)->sin_addr),
sizeof(struct in_addr));
}
++i;
Expand Down
4 changes: 2 additions & 2 deletions deps/cares/src/ares_parse_aaaa_reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
{
hostent->h_addr_list[i] = (char*)&addrs[i];
memcpy(hostent->h_addr_list[i],
&(((struct sockaddr_in6 *)next->ai_addr)->sin6_addr),
&(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr),
sizeof(struct ares_in6_addr));
if (naddrttls && i < *naddrttls)
{
Expand All @@ -175,7 +175,7 @@ int ares_parse_aaaa_reply(const unsigned char *abuf, int alen,
addrttls[i].ttl = next->ai_ttl;

memcpy(&addrttls[i].ip6addr,
&(((struct sockaddr_in6 *)next->ai_addr)->sin6_addr),
&(CARES_INADDR_CAST(struct sockaddr_in6 *, next->ai_addr)->sin6_addr),
sizeof(struct ares_in6_addr));
}
++i;
Expand Down
2 changes: 1 addition & 1 deletion deps/cares/src/ares_parse_txt_reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ares__parse_txt_reply (const unsigned char *abuf, int alen,
}

/* Check if we are really looking at a TXT record */
if (rr_class == C_IN && rr_type == T_TXT)
if ((rr_class == C_IN || rr_class == C_CHAOS) && rr_type == T_TXT)
{
/*
* There may be multiple substrings in a single TXT record. Each
Expand Down
5 changes: 5 additions & 0 deletions deps/cares/src/ares_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
#define STATIC_TESTABLE static
#endif

/* By using a double cast, we can get rid of the bogus warning of
* warning: cast from 'const struct sockaddr *' to 'const struct sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align]
*/
#define CARES_INADDR_CAST(type, var) ((type)((void *)var))

#if defined(WIN32) && !defined(WATT32)

#define WIN_NS_9X "System\\CurrentControlSet\\Services\\VxD\\MSTCP"
Expand Down
4 changes: 2 additions & 2 deletions deps/cares/src/ares_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,13 +1337,13 @@ static int same_address(struct sockaddr *sa, struct ares_addr *aa)
{
case AF_INET:
addr1 = &aa->addrV4;
addr2 = &((struct sockaddr_in *)sa)->sin_addr;
addr2 = &(CARES_INADDR_CAST(struct sockaddr_in *, sa))->sin_addr;
if (memcmp(addr1, addr2, sizeof(aa->addrV4)) == 0)
return 1; /* match */
break;
case AF_INET6:
addr1 = &aa->addrV6;
addr2 = &((struct sockaddr_in6 *)sa)->sin6_addr;
addr2 = &(CARES_INADDR_CAST(struct sockaddr_in6 *, sa))->sin6_addr;
if (memcmp(addr1, addr2, sizeof(aa->addrV6)) == 0)
return 1; /* match */
break;
Expand Down