Fix the Redis dissector (#739)

Co-authored-by: Igor Gov <iggvrv@gmail.com>
This commit is contained in:
M. Mert Yıldıran 2022-02-01 13:24:56 +03:00 committed by GitHub
parent 602225bb36
commit 0846a98bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,12 +117,6 @@ func (r *RedisInputStream) readLineBytes() ([]byte, error) {
line := make([]byte, N)
j := 0
for i := r.count; i <= N; i++ {
if i >= len(buf) {
return nil, errors.New("Redis buffer index mismatch.")
}
if i >= len(line) {
return nil, errors.New("Redis line index mismatch.")
}
line[j] = buf[i]
j++
}