From 361ba7600dc62086a129d90767963a1d5373b722 Mon Sep 17 00:00:00 2001 From: xtaci Date: Wed, 18 Dec 2019 15:50:09 +0800 Subject: [PATCH] fix error --- generic/rawcopy_windows.go | 1 - 1 file changed, 1 deletion(-) diff --git a/generic/rawcopy_windows.go b/generic/rawcopy_windows.go index aea968632..7f4c26d71 100644 --- a/generic/rawcopy_windows.go +++ b/generic/rawcopy_windows.go @@ -40,7 +40,6 @@ func rawCopy(dst io.Writer, src *net.TCPConn, ctrl *CopyControl) (written int64, ctrl.Lock() nw, ew := dst.Write(buf[0:nr]) ctrl.Unlock() - buf = nil if nw > 0 { written += int64(nw) }