From 040aabae647850a218f9bf9ac262932e2ce7c2d9 Mon Sep 17 00:00:00 2001 From: Yannick Dylla <17772145+ydylla@users.noreply.github.com> Date: Mon, 1 Jul 2024 00:25:47 +0200 Subject: [PATCH] fix: xmpp matcher not reporting potential ErrConsumedAllPrefetchedBytes errors --- modules/l4xmpp/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }