75830fb836
Currently, the initialization of _nres is not thread-saferes_mkquery is not thread-safe, which might cause memory double free problem if caller ran under multithread. To fix it, only initialize _nres once. Also remove the redundant code. Test: atest DnsResolverTest Bug: 166235340 Change-Id: I9caa6eab37cb530fc60dae9bcca9650973a4536a |
||
---|---|---|
.. | ||
include | ||
nameser | ||
net | ||
resolv |