mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-03-31 10:47:35 +03:00
Fix panic when using QUICRandomFrames
This commit is contained in:
parent
bbc1fe07d7
commit
a157e2d9de
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ func (p *uPacketPacker) MarshalInitialPacketPayload(pl payload, v protocol.Versi
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if p.uSpec.InitialPacketSpec.FrameBuilder == nil || len(p.uSpec.InitialPacketSpec.FrameBuilder.(QUICFrames)) == 0 {
|
||||
if qf, ok := p.uSpec.InitialPacketSpec.FrameBuilder.(QUICFrames); p.uSpec.InitialPacketSpec.FrameBuilder == nil || ok && len(qf) == 0 {
|
||||
qfs := QUICFrames{}
|
||||
for _, frame := range qchframes {
|
||||
if cryptoFrame, ok := frame.(*clienthellod.CRYPTO); ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue