From a2cf34a64ef3348b284135e04659418d2a04ac5f Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 17 Nov 2016 21:04:51 +0100 Subject: [PATCH] code review: added endpos to found tuple, just to be safe by unpack --- fail2ban/server/datedetector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/server/datedetector.py b/fail2ban/server/datedetector.py index 458f8d11..01cb43fe 100644 --- a/fail2ban/server/datedetector.py +++ b/fail2ban/server/datedetector.py @@ -359,7 +359,7 @@ class DateDetector(object): if not match: self.__lastTemplIdx = 0x7fffffff logSys.log(logLevel, " search template (%i) ...", len(self.__templates)) - found = None, 0x7fffffff, -1 + found = None, 0x7fffffff, 0x7fffffff, -1 i = 0 for ddtempl in self.__templates: if logSys.getEffectiveLevel() <= logLevel-1: