forked from quic-go/quic-go
fix unmarshaling of transport parameters from session tickets
This commit is contained in:
@@ -413,8 +413,7 @@ func (p *TransportParameters) UnmarshalFromSessionTicket(data []byte) error {
|
||||
if version != transportParameterMarshalingVersion {
|
||||
return fmt.Errorf("unknown transport parameter marshaling version: %d", version)
|
||||
}
|
||||
tp := &TransportParameters{}
|
||||
return tp.Unmarshal(data[len(data)-r.Len():], protocol.PerspectiveServer)
|
||||
return p.Unmarshal(data[len(data)-r.Len():], protocol.PerspectiveServer)
|
||||
}
|
||||
|
||||
// ValidFor0RTT checks if the transport parameters match those saved in the session ticket.
|
||||
|
||||
Reference in New Issue
Block a user