From e9620558ac2f327d965a701879cac5ca0d3245e0 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 23 Apr 2017 08:00:01 -0400 Subject: [PATCH] immediate return --- contrib/backends/srndv2/src/srnd/nntp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index acd4794..f2f1e8e 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -442,6 +442,7 @@ func (self *nntpConnection) checkMIMEHeaderNoAuth(daemon *NNTPDaemon, hdr textpr } else if !self.policy.AllowsNewsgroup(newsgroup) { reason = "newsground not allowed by feed policy" ban = true + return } else if !(ValidMessageID(msgid) || (reference != "" && !ValidMessageID(reference))) { // invalid message id or reference reason = "invalid reference or message id is '" + msgid + "' reference is '" + reference + "'"