Skip to content

Commit

Permalink
fix crash when socket_listener receiving invalid data (#8551)
Browse files Browse the repository at this point in the history
Co-authored-by: Hoa Nguyen Van <[email protected]>
  • Loading branch information
vhqtvn and vanhoavn authored Dec 15, 2020
1 parent f6e2d45 commit 8e08da1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/socket_listener/socket_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func (ssl *streamSocketListener) read(c net.Conn) {
decoder, err := internal.NewStreamContentDecoder(ssl.ContentEncoding, c)
if err != nil {
ssl.Log.Error("Read error: %v", err)
return
}

scnr := bufio.NewScanner(decoder)
Expand Down

0 comments on commit 8e08da1

Please sign in to comment.