Unverified Commit 0846a98b authored by M. Mert Yıldıran's avatar M. Mert Yıldıran Committed by GitHub
Browse files

Fix the Redis dissector (#739)

Co-authored-by: default avatarIgor Gov <iggvrv@gmail.com>
parent 602225bb
Showing with 0 additions and 6 deletions
+0 -6
......@@ -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++
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment