From: achbed Date: Fri, 16 Jan 2015 22:48:37 +0000 (-0600) Subject: Fixed logic flaw with retry counts (negative maxretry value would never retry instead... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0077d37ab3e5815f7f02e52fe7a2e060b734b4f9;p=deefuzzer.git Fixed logic flaw with retry counts (negative maxretry value would never retry instead of always retry) Signed-off-by: achbed --- diff --git a/deefuzzer/core.py b/deefuzzer/core.py index 60648a2..0e0fcab 100644 --- a/deefuzzer/core.py +++ b/deefuzzer/core.py @@ -283,7 +283,7 @@ class DeeFuzzer(Thread): self.station_settings[i]['retries'] = 0 continue - if self.maxretry < 0 or self.station_settings[i]['retries'] <= self.maxretry: + if self.maxretry >= 0 and self.station_settings[i]['retries'] <= self.maxretry: # Station passed the max retries count is will not be reloaded continue