Skip to content
Snippets Groups Projects
Commit 2f27bd9e authored by Bolke de Bruin's avatar Bolke de Bruin
Browse files

Correct packet size

parent c9213414
Branches
Tags
No related merge requests found
......@@ -101,7 +101,7 @@ func readHeader(data []byte) (packetType uint16, size uint32, packet []byte, err
if len(data) < int(size) {
return packetType, size, data[8:], errors.New("data incomplete, fragment received")
}
return packetType, size, data[8:size-8], nil
return packetType, size, data[8:size], nil
}
// forwards data from a Connection to Transport and wraps it in the rdpgw protocol
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment