From 6b3dbaa2f257a82171e14cd9a64bc3aaac006501 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Fri, 23 Jun 2023 12:08:25 +0530 Subject: [PATCH] suricatasc: Don't process empty cmds --- python/suricata/sc/suricatasc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/suricata/sc/suricatasc.py b/python/suricata/sc/suricatasc.py index 872895dcb6..3c47a2fc79 100644 --- a/python/suricata/sc/suricatasc.py +++ b/python/suricata/sc/suricatasc.py @@ -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: