From: Shivani Bhardwaj Date: Fri, 23 Jun 2023 06:38:25 +0000 (+0530) Subject: suricatasc: Don't process empty cmds X-Git-Tag: suricata-6.0.14~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9e81310ccb6fd27010404fc1deedd9bdada09d6;p=thirdparty%2Fsuricata.git suricatasc: Don't process empty cmds (cherry picked from commit 6b3dbaa2f257a82171e14cd9a64bc3aaac006501) --- diff --git a/python/suricata/sc/suricatasc.py b/python/suricata/sc/suricatasc.py index f5af664e2b..8263276d92 100644 --- a/python/suricata/sc/suricatasc.py +++ b/python/suricata/sc/suricatasc.py @@ -256,6 +256,8 @@ class SuricataSC: command = input(">>> ").strip() if command == "quit": break + if len(command.strip()) == 0: + continue try: cmd, arguments = self.parse_command(command) except SuricataCommandException as err: