Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
policyd
policyd
Commits
904e9cf1
Commit
904e9cf1
authored
Jan 02, 2009
by
Nigel Kukard
Browse files
* Fixed bug in quotas where non-existant counters were being used
parent
5479299f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cbp/modules/Quotas.pm
View file @
904e9cf1
...
...
@@ -185,7 +185,6 @@ sub check {
# Check for violation
if
(
$qtrack
->
{'
Counter
'}
>
$limit
->
{'
CounterLimit
'})
{
$hasExceeded
=
"
Policy rejection; Message count quota exceeded
";
$exceededLimit
=
$limit
;
}
# Bump up limit
$newCounters
{
$qtrack
->
{'
QuotasLimitsID
'}}
++
;
...
...
@@ -195,7 +194,6 @@ sub check {
# Check for violation
if
(
$qtrack
->
{'
Counter
'}
>
$limit
->
{'
CounterLimit
'})
{
$hasExceeded
=
"
Policy rejection; Cumulative message size quota exceeded
";
$exceededLimit
=
$limit
;
}
}
...
...
@@ -217,11 +215,11 @@ sub check {
# Setup some stuff we need for logging
$qtrack
->
{'
DBKey
'}
=
$key
;
$qtrack
->
{'
CounterLimit
'}
=
$
exceededL
imit
->
{'
CounterLimit
'};
$qtrack
->
{'
LimitType
'}
=
$
exceededL
imit
->
{'
Type
'};
$qtrack
->
{'
CounterLimit
'}
=
$
l
imit
->
{'
CounterLimit
'};
$qtrack
->
{'
LimitType
'}
=
$
l
imit
->
{'
Type
'};
$qtrack
->
{'
PolicyID
'}
=
$policyID
;
$qtrack
->
{'
QuotaID
'}
=
$quota
->
{'
ID
'};
$qtrack
->
{'
LimitID
'}
=
$
exceededL
imit
->
{'
ID
'};
$qtrack
->
{'
LimitID
'}
=
$
l
imit
->
{'
ID
'};
$qtrack
->
{'
Verdict
'}
=
$quota
->
{'
Verdict
'};
$qtrack
->
{'
VerdictData
'}
=
$quota
->
{'
Data
'};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment