diff options
Diffstat (limited to 'pktline/decoder.go')
-rw-r--r-- | pktline/decoder.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pktline/decoder.go b/pktline/decoder.go index db3fd72..76be108 100644 --- a/pktline/decoder.go +++ b/pktline/decoder.go @@ -2,6 +2,7 @@ package pktline import ( "errors" + "fmt" "io" "strconv" ) @@ -25,9 +26,10 @@ func (d *Decoder) readLine() (string, error) { if _, err := d.r.Read(raw); err != nil { return "", err } - header, err := strconv.ParseInt(string(raw), 16, 16) if err != nil { + fmt.Println(err) + return "", ErrInvalidHeader } |