Skip to content

Commit

Permalink
Fix bug MatchRule when Type equals TypeInvalid.
Browse files Browse the repository at this point in the history
MatchRule matched messages against a TypeInvalid value.
  • Loading branch information
bmatsuo committed Jan 15, 2012
1 parent ca9d3f0 commit 9448c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (p *MatchRule) String() string {
}

func (p *MatchRule) _Match(msg *Message) bool {
if p.Type != msg.Type {
if p.Type != TypeInvalid && p.Type != msg.Type {
return false
}
if p.Interface != "" && p.Interface != msg.Iface {
Expand Down

0 comments on commit 9448c68

Please sign in to comment.