diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2019-05-07 12:49:08 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2019-05-07 12:49:08 +0500 |
commit | 46120d6e615371d1a08609379af4b1fc578faf66 (patch) | |
tree | 6ecdb4bf79ebda5bd5101b122161cf461c082041 | |
parent | 4e2ded41821675c3c4c6c93c91a3ec0f3bee6478 (diff) |
Check if session is still valid.
-rw-r--r-- | filter_rspamd.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter_rspamd.go b/filter_rspamd.go index 5b5a1a1..d326b09 100644 --- a/filter_rspamd.go +++ b/filter_rspamd.go @@ -224,7 +224,9 @@ func main() { payload: &strings.Builder{}} fallthrough default: - registry[event].fn(sessions[id], fields) + if sessions[id] != nil { + registry[event].fn(sessions[id], fields) + } } } } |