Fix use-after-scope in GbDns (ares_timeout() returns the 3rd argument)

This commit is contained in:
Ivan Skytte Jørgensen
2017-08-28 12:09:42 +02:00
parent 0dc337a6e8
commit ffceff1e4c

@ -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);
}