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

* Small code cleanup

parent e3e0f659
......@@ -247,7 +247,7 @@ sub check {
if ($sessionData->{'ParsedClientAddress'}->{'IP_Long'} >= $parsedIP->{'Network_Long'} &&
$sessionData->{'ParsedClientAddress'}->{'IP_Long'} <= $parsedIP->{'Broadcast_Long'}) {
# Cache positive result
my ($cache_res,$cache) = cacheStoreKeyPair('CheckHelo/Whitelist/IP',
my $cache_res = cacheStoreKeyPair('CheckHelo/Whitelist/IP',
$sessionData->{'ClientAddress'},1);
if ($cache_res) {
return $server->protocol_response(PROTO_ERROR);
......@@ -262,7 +262,7 @@ sub check {
return $server->protocol_response(PROTO_PASS);
}
# Cache negative result
my ($cache_res,$cache) = cacheStoreKeyPair('CheckHelo/Whitelist/IP',$sessionData->{'ClientAddress'},0);
my $cache_res = cacheStoreKeyPair('CheckHelo/Whitelist/IP',$sessionData->{'ClientAddress'},0);
if ($cache_res) {
return $server->protocol_response(PROTO_ERROR);
}
......
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