diff --git a/firewall/interception/nfq/nfq.go b/firewall/interception/nfq/nfq.go index f4f0fe99..b22e125a 100644 --- a/firewall/interception/nfq/nfq.go +++ b/firewall/interception/nfq/nfq.go @@ -216,6 +216,10 @@ func (q *Queue) packetHandler(ctx context.Context) func(nfqueue.Attribute) int { // Destroy destroys the queue. Any error encountered is logged. func (q *Queue) Destroy() { + if q == nil { + return + } + q.cancelSocketCallback() if nf := q.getNfq(); nf != nil {