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: [email protected]
For additional commands, e-mail: [email protected]