Skip to content

Commit

Permalink
python/log_incident - Don't link connections if parent is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Dec 17, 2016
1 parent 856881a commit ba435cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/python/dionaea/log_incident.py
Expand Up @@ -109,6 +109,11 @@ def __init__(self, path, config=None):

def handle_incident(self, icd):
icd.dump()
if icd.origin == "dionaea.connection.link":
if icd.parent not in self._connection_ids:
# Don't link connections if parent is not available
# This should only happen if the parent is the listening server connection
return

idata = {}
for k in icd.keys():
Expand Down

0 comments on commit ba435cf

Please sign in to comment.