diff --git a/ChangeLog b/ChangeLog index 633bebbb..5a7ce8fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ ver. 0.8.11 (2013/XX/XXX) - loves-unittests - All backends, possible race condition: do not read from a file initially reported empty. Originally could have lead to accounting for detected log lines multiple times. + - Do not crash if executing a command in fail2ban-client interactive + mode has failed (e.g. due to incorrect syntax). Closes gh-353 Daniel Black & Мернов Георгий * filter.d/dovecot.conf -- Fix when no TLS enabled - line doesn't end in , Daniel Black diff --git a/fail2ban-client b/fail2ban-client index be48a613..c18b7d55 100755 --- a/fail2ban-client +++ b/fail2ban-client @@ -383,7 +383,10 @@ class Fail2banClient: if cmd == "help": self.dispUsage() elif not cmd == "": - self.__processCommand(shlex.split(cmd)) + try: + self.__processCommand(shlex.split(cmd)) + except Exception, e: + logSys.error(e) except (EOFError, KeyboardInterrupt): print return True