]> granicus.if.org Git - libevent/commitdiff
There is typo in GetAdaptersAddresses windows library. It should be iphlpapi.dll
authorAleksandr-Melnikov <64836370+Aleksandr-Melnikov@users.noreply.github.com>
Tue, 5 May 2020 09:31:09 +0000 (10:31 +0100)
committerGitHub <noreply@github.com>
Tue, 5 May 2020 09:31:09 +0000 (10:31 +0100)
evutil.c

index 17962548cf3b14cbf4a4fc53ce8e2c12a3f42a60..eee970a4b3f838da9d3b7ce56554f08caf220fd6 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -879,7 +879,7 @@ evutil_check_ifaddrs(void)
           "GetAdaptersInfo", but that's deprecated; let's just try
           GetAdaptersAddresses and fall back to connect+getsockname.
        */
-       HMODULE lib = evutil_load_windows_system_library_(TEXT("ihplapi.dll"));
+       HMODULE lib = evutil_load_windows_system_library_(TEXT("iphlpapi.dll"));
        GetAdaptersAddresses_fn_t fn;
        ULONG size, res;
        IP_ADAPTER_ADDRESSES *addresses = NULL, *address;