]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricatasc: Don't process empty cmds
authorShivani Bhardwaj <shivani@oisf.net>
Fri, 23 Jun 2023 06:38:25 +0000 (12:08 +0530)
committerVictor Julien <vjulien@oisf.net>
Tue, 27 Jun 2023 07:33:49 +0000 (09:33 +0200)
python/suricata/sc/suricatasc.py

index 872895dcb6d64f17583e44c4ca98e7678be23357..3c47a2fc79194ed59aa7c6f509ebffc0ac8e578f 100644 (file)
@@ -259,6 +259,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: