Set reserved to zero after Read()

Thank @IRN-Kawakaze for testing
This commit is contained in:
RPRX 2023-03-03 15:39:16 +00:00 committed by GitHub
parent 25ea69fc3a
commit 4c8ee0af50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,13 @@ func (bind *netBindClient) connectTo(endpoint *netEndpoint) error {
return
}
i, err := c.Read(v.buff)
if i > 3 {
v.buff[1] = 0
v.buff[2] = 0
v.buff[3] = 0
}
v.bytes = i
v.endpoint = endpoint
v.err = err