aboutsummaryrefslogtreecommitdiffstats
path: root/replay/replay.go
diff options
context:
space:
mode:
Diffstat (limited to 'replay/replay.go')
-rw-r--r--replay/replay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/replay/replay.go b/replay/replay.go
index fac7ab2..8b99e23 100644
--- a/replay/replay.go
+++ b/replay/replay.go
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT
*
- * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
+ * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
// Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
@@ -34,7 +34,7 @@ func (f *Filter) Reset() {
// ValidateCounter checks if the counter should be accepted.
// Overlimit counters (>= limit) are always rejected.
-func (f *Filter) ValidateCounter(counter uint64, limit uint64) bool {
+func (f *Filter) ValidateCounter(counter, limit uint64) bool {
if counter >= limit {
return false
}