diff --git a/common/sniff/quic.go b/common/sniff/quic.go index 1128776d..e7e7f71f 100644 --- a/common/sniff/quic.go +++ b/common/sniff/quic.go @@ -163,6 +163,9 @@ func QUICClientHello(ctx context.Context, packet []byte) (*adapter.InboundContex } decryptedReader := bytes.NewReader(decrypted) frameType, err := decryptedReader.ReadByte() + if err != nil { + return nil, err + } if frameType != 0x6 { // not crypto frame return &adapter.InboundContext{Protocol: C.ProtocolQUIC}, nil