Commit eebc47f3 authored by John Selbie's avatar John Selbie

Merge pull request #15 from northteam/patch-1

fix: freeaddrinfo on Android crashes when passed NULL
parents 540ba465 8400fc6f
......@@ -55,7 +55,9 @@ HRESULT ResolveHostName(const char* pszHostName, int family, bool fNumericOnly,
Cleanup:
::freeaddrinfo(pResultList);
if (pResultList != NULL) {
::freeaddrinfo(pResultList);
}
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment