calculate PublicHeader length for packets with VersionFlag and ResetFlag

This commit is contained in:
Marten Seemann
2016-11-08 09:21:27 +07:00
parent 6c0a885a0e
commit 756a421065
3 changed files with 66 additions and 24 deletions

View File

@@ -74,7 +74,7 @@ func (p *packetPacker) packPacket(stopWaitingFrame *frames.StopWaitingFrame, lea
DiversificationNonce: p.cryptoSetup.DiversificationNonce(),
}
publicHeaderLength, err := responsePublicHeader.GetLength()
publicHeaderLength, err := responsePublicHeader.GetLength(p.perspective)
if err != nil {
return nil, err
}