From fdb683106457380aee1b22c8b87302e0f3322b4f Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 23 Apr 2017 07:58:17 -0400 Subject: [PATCH] nil check --- contrib/backends/srndv2/src/srnd/nntp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index acd4794..1c03ed8 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -439,7 +439,7 @@ func (self *nntpConnection) checkMIMEHeaderNoAuth(daemon *NNTPDaemon, hdr textpr reason = "poster's pubkey is banned" ban = true return - } else if !self.policy.AllowsNewsgroup(newsgroup) { + } else if self.policy != nil && !self.policy.AllowsNewsgroup(newsgroup) { reason = "newsground not allowed by feed policy" ban = true } else if !(ValidMessageID(msgid) || (reference != "" && !ValidMessageID(reference))) {