fix packing of probe packets when retransmissions are canceled

This commit is contained in:
Marten Seemann
2020-04-17 10:06:32 +07:00
parent 16e3ddb196
commit 88337ed8c0
3 changed files with 14 additions and 2 deletions

View File

@@ -1404,7 +1404,7 @@ func (s *session) sendProbePacket(encLevel protocol.EncryptionLevel) error {
return err
}
}
if packet == nil {
if packet == nil || packet.packetContents == nil {
return fmt.Errorf("session BUG: couldn't pack %s probe packet", encLevel)
}
s.sendPackedPacket(packet)