diff options
-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) + } } } } |