From 67e02ecc1ed7317715c82d6fbc8da548233fb30b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 26 Sep 2021 13:47:58 +0200 Subject: [PATCH] Remove connection reason when none is given in a verdict update --- network/connection.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/connection.go b/network/connection.go index 234849c5..93012a15 100644 --- a/network/connection.go +++ b/network/connection.go @@ -505,6 +505,9 @@ func (conn *Connection) SetVerdict(newVerdict Verdict, reason, reasonOptionKey s if reasonOptionKey != "" && conn.Process() != nil { conn.Reason.OptionKey = reasonOptionKey conn.Reason.Profile = conn.Process().Profile().GetProfileSource(conn.Reason.OptionKey) + } else { + conn.Reason.OptionKey = "" + conn.Reason.Profile = "" } return true }