Skip to content

Commit

Permalink
fix: xmpp matcher not reporting potential ErrConsumedAllPrefetchedByt…
Browse files Browse the repository at this point in the history
…es errors
  • Loading branch information
ydylla committed Jun 30, 2024
1 parent 3e5b068 commit 040aaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/l4xmpp/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 040aaba

Please sign in to comment.