summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-02-08 15:12:44 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-02-08 15:12:44 +0100
commit6221990bce767a63eb35b19b581bf30a9060fc90 (patch)
tree74416284200dd1d472c8677a325e726f73544d39
parent3a2b3c7699f93dececde9fef1f87f31dc22524fa (diff)
downloadrsyslog-6221990bce767a63eb35b19b581bf30a9060fc90.tar.gz
rsyslog-6221990bce767a63eb35b19b581bf30a9060fc90.tar.xz
rsyslog-6221990bce767a63eb35b19b581bf30a9060fc90.zip
dns cache: experimental fix for name resulution problem
-rw-r--r--runtime/dnscache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/dnscache.c b/runtime/dnscache.c
index 549bcd93..8ce1a43b 100644
--- a/runtime/dnscache.c
+++ b/runtime/dnscache.c
@@ -344,7 +344,7 @@ dbgprintf("XXXX: hostn '%s', ip '%s'\n", etry->pszHostFQDN, etry->ip);
finalize_it:
pthread_rwlock_unlock(&dnsCache.rwlock);
- if(iRet != RS_RET_OK) {
+ if(iRet != RS_RET_OK && iRet != RS_RET_ADDRESS_UNKNOWN) {
DBGPRINTF("dnscacheLookup failed with iRet %d\n", iRet);
strcpy((char*) pszHostFQDN, "???");
strcpy((char*) ip, "???");