diff options
Diffstat (limited to 'src/hostcache.cc')
| -rw-r--r-- | src/hostcache.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hostcache.cc b/src/hostcache.cc index 23be08f..9fda094 100644 --- a/src/hostcache.cc +++ b/src/hostcache.cc @@ -58,7 +58,10 @@ static bool DoResolveHostName(const char *HostName, int *OutAddr){ } bool ResolveHostName(const char *HostName, int *OutAddr){ - ASSERT(HostName != NULL && !StringEmpty(HostName)); + if(HostName == NULL || StringEmpty(HostName)){ + return false; + } + THostCacheEntry *Entry = NULL; int LeastRecentlyUsedIndex = 0; int LeastRecentlyUsedTime = g_CachedHostNames[0].ResolveTime; |
