Skip to content

Commit

Permalink
Correct packet size
Browse files Browse the repository at this point in the history
  • Loading branch information
bolkedebruin committed Aug 21, 2020
1 parent c921341 commit 2f27bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f27bd9

Please sign in to comment.