mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix crash on macOS when DNS cache expired.
This commit is contained in:
@@ -150,7 +150,7 @@ private:
|
||||
|
||||
if (ai)
|
||||
{
|
||||
if (ai->ai_flags)
|
||||
if (ai->ai_flags & 1)
|
||||
freeaddrinfo(ai);
|
||||
else
|
||||
protocol::DnsUtil::freeaddrinfo(ai);
|
||||
|
||||
Reference in New Issue
Block a user