This commit is contained in:
Derek Collison
2016-06-09 12:27:11 -07:00
parent 60db74f750
commit 8e81a1803c

View File

@@ -845,6 +845,11 @@ func (c *client) processMsg(msg []byte) {
return
}
// Check for pedantic and bad subject.
if c.opts.Pedantic && !IsValidLiteralSubject(string(c.pa.subject)) {
return
}
// Scratch buffer..
msgh := c.msgb[:len(msgHeadProto)]