From 2fdf3bec3bdc2ec79c114d6bcbdc702064d377cd Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 9 Feb 2012 15:12:36 +0100 Subject: dns cache: working on invalid resolution bug, again the proposed solution did not work out well... --- runtime/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/net.c') diff --git a/runtime/net.c b/runtime/net.c index e1e25df8..4631adc4 100644 --- a/runtime/net.c +++ b/runtime/net.c @@ -1130,7 +1130,7 @@ rsRetVal cvthname(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN iRet = dnscacheLookup(f, pszHostFQDN, pszIP); - if(iRet == RS_RET_INVALID_SOURCE || iRet == RS_RET_ADDRESS_UNKNOWN) { + if(iRet == RS_RET_INVALID_SOURCE) { strcpy((char*) pszHost, (char*) pszHostFQDN); /* we use whatever was provided as replacement */ ABORT_FINALIZE(RS_RET_OK); /* this is handled, we are happy with it */ } else if(iRet != RS_RET_OK) { -- cgit v1.2.3