Commit 03216864 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* If we encounter an invalid IP in the greylisting whitelist, throw a warning not a hard error

- Robert Anderson <randerson@lbsd.net>
parent 3c1e46aa
......@@ -209,17 +209,14 @@ sub check {
return $server->protocol_response(PROTO_PASS);
}
} else {
$server->log(LOG_ERR,"[GREYLISTING] Failed to parse address '$address' is invalid.");
DBFreeRes($sth);
return $server->protocol_response(PROTO_DATA_ERROR);
$server->log(LOG_WARN,"[GREYLISTING] Skipping invalid address '$address'.");
}
} else {
$server->log(LOG_ERR,"[GREYLISTING] Whitelist entry '".$row->{'source'}."' is invalid.");
DBFreeRes($sth);
return $server->protocol_response(PROTO_DATA_ERROR);
$server->log(LOG_WARN,"[GREYLISTING] Skipping invalid whitelist entry '".$row->{'source'}."'.");
}
}
DBFreeRes($sth);
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment