forked from quic-go/quic-go
fix comment claiming ParseConnectionID reuses the data slice (#3848)
This commit is contained in:
@@ -13,8 +13,6 @@ import (
|
||||
)
|
||||
|
||||
// ParseConnectionID parses the destination connection ID of a packet.
|
||||
// It uses the data slice for the connection ID.
|
||||
// That means that the connection ID must not be used after the packet buffer is released.
|
||||
func ParseConnectionID(data []byte, shortHeaderConnIDLen int) (protocol.ConnectionID, error) {
|
||||
if len(data) == 0 {
|
||||
return protocol.ConnectionID{}, io.EOF
|
||||
|
||||
Reference in New Issue
Block a user