Skip to content

Commit

Permalink
IDPS: rulecache parse error on invalid metadata, for #4302
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Aug 27, 2020
1 parent 948803f commit f082239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/scripts/suricata/lib/rulecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def list_rules(self, filename):
if prop == 'metadata':
for mdtag in list(csv.reader([value], delimiter=","))[0]:
parts = mdtag.split(maxsplit=1)
record['metadata'][parts[0]] = parts[1]
record['metadata'][parts[0]] = parts[1] if len(parts) > 1 else None
else:
record[prop] = value

Expand Down

0 comments on commit f082239

Please sign in to comment.