diff --git a/modules/l4xmpp/matcher.go b/modules/l4xmpp/matcher.go index b9a2d45..93f55e8 100644 --- a/modules/l4xmpp/matcher.go +++ b/modules/l4xmpp/matcher.go @@ -42,7 +42,7 @@ func (m MatchXMPP) Match(cx *layer4.Connection) (bool, error) { p := make([]byte, minXmppLength) n, err := io.ReadFull(cx, p) if err != nil || n < minXmppLength { // needs at least 50 (fix for adium/pidgin) - return false, nil + return false, err } return strings.Contains(string(p), xmppWord), nil }