mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
Bugfix Dns::getIPLookupHost()
When it returns NULL it must also set g_errno
This commit is contained in:
1
Dns.cpp
1
Dns.cpp
@ -2549,6 +2549,7 @@ Host *Dns::getIPLookupHost(key96_t key) {
|
||||
// NULL if none
|
||||
if ( numAlive == 0 ) {
|
||||
logTrace( g_conf.m_logTraceDns, "END. None alive. return NULL" );
|
||||
g_errno = EHOSTDEAD;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user