mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
Fix use-after-scope in GbDns (ares_timeout() returns the 3rd argument)
This commit is contained in:
@ -92,10 +92,10 @@ static void* processing_thread(void *args) {
|
||||
}
|
||||
|
||||
timeval *tvp = NULL;
|
||||
timeval tv;
|
||||
|
||||
{
|
||||
ScopedLock sl(s_channelMtx);
|
||||
timeval tv;
|
||||
tvp = ares_timeout(s_channel, NULL, &tv);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user