Skip to content

Commit

Permalink
Fix for #288
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Jun 9, 2016
1 parent 60db74f commit 8e81a18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit 8e81a18

Please sign in to comment.