mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 60d045b1c1a6 (bug 1183781) for causing bug 1186435. a=me
This commit is contained in:
parent
fe6a84f44d
commit
eab575f2a7
@ -471,15 +471,6 @@ HostDB_ClearEntry(PLDHashTable *table,
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
MutexAutoLock lock(he->rec->addr_info_lock);
|
||||
if (he->rec->addr_info) {
|
||||
delete hr->addr_info;
|
||||
he->rec->addr_info = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
NS_RELEASE(he->rec);
|
||||
}
|
||||
|
||||
@ -862,12 +853,8 @@ nsHostResolver::ResolveHost(const char *host,
|
||||
LOG((" Trying AF_UNSPEC entry for host [%s%s%s] af: %s.\n",
|
||||
LOG_HOST(host, netInterface),
|
||||
(af == PR_AF_INET) ? "AF_INET" : "AF_INET6"));
|
||||
// Ensure existing `addr_info` in `he` is cleared before
|
||||
// copying from `unSpecHe`.
|
||||
if (he->rec->addr_info) {
|
||||
delete he->rec->addr_info;
|
||||
he->rec->addr_info = nullptr;
|
||||
}
|
||||
|
||||
he->rec->addr_info = nullptr;
|
||||
if (unspecHe->rec->negative) {
|
||||
he->rec->negative = unspecHe->rec->negative;
|
||||
he->rec->CopyExpirationTimesAndFlagsFrom(unspecHe->rec);
|
||||
|
Loading…
Reference in New Issue
Block a user