Do not log raw input in ScanStream
This commit is contained in:
committed by
Dolf Schimmel (Freeaqingme)
parent
ac27ac358e
commit
1b4a274e85
2
clamd.go
2
clamd.go
@@ -29,7 +29,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@@ -261,7 +260,6 @@ func (c *Clamd) ScanStream(r io.Reader) (chan string, error) {
|
|||||||
|
|
||||||
nr, err := r.Read(buf)
|
nr, err := r.Read(buf)
|
||||||
if nr > 0 {
|
if nr > 0 {
|
||||||
log.Printf("Error %v, %v, %v", buf[0:nr], nr, err)
|
|
||||||
conn.sendChunk(buf[0:nr])
|
conn.sendChunk(buf[0:nr])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user