You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by er...@apache.org on 2010/10/14 16:46:58 UTC
svn commit: r1022555 -
/james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java
Author: eric
Date: Thu Oct 14 14:46:58 2010
New Revision: 1022555
URL: http://svn.apache.org/viewvc?rev=1022555&view=rev
Log:
No match, so return false, in case of UnknownHostException (JAMES-1061)
Modified:
james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java
Modified: james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java
URL: http://svn.apache.org/viewvc/james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java?rev=1022555&r1=1022554&r2=1022555&view=diff
==============================================================================
--- james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java (original)
+++ james/server/trunk/common-util/src/main/java/org/apache/james/util/netmatcher/NetMatcher.java Thu Oct 14 14:46:58 2010
@@ -83,6 +83,7 @@ public class NetMatcher {
ip = dnsServer.getByName(hostIP);
} catch (UnknownHostException uhe) {
log("Cannot resolve address for " + hostIP + ": " + uhe.getMessage());
+ return false;
}
return matchInetNetwork(ip);
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org