}
Boolean ipv4check = (Boolean) spfSession.getAttribute(ATTRIBUTE_AMECHANISM_IPV4CHECK);
if (ipv4check.booleanValue()) {
IPAddr checkAddress = IPAddr.getAddress(spfSession.getIpAddress(),
getIp4cidr());
if (checkAddressList(checkAddress, listAData, getIp4cidr())) {
spfSession.setAttribute(Directive.ATTRIBUTE_MECHANISM_RESULT, Boolean.TRUE);
return null;
}
} else {
IPAddr checkAddress = IPAddr.getAddress(spfSession.getIpAddress(),
getIp6cidr());
if (checkAddressList(checkAddress, listAData, getIp6cidr())) {
spfSession.setAttribute(Directive.ATTRIBUTE_MECHANISM_RESULT, Boolean.TRUE);
return null;