mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-16 21:53:45 +02:00
Correct packet size
This commit is contained in:
parent
c9213414c5
commit
2f27bd9e94
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ func readHeader(data []byte) (packetType uint16, size uint32, packet []byte, err
|
||||||
if len(data) < int(size) {
|
if len(data) < int(size) {
|
||||||
return packetType, size, data[8:], errors.New("data incomplete, fragment received")
|
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
|
// forwards data from a Connection to Transport and wraps it in the rdpgw protocol
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue