mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 19:06:52 +01:00
tweaks to error handling in iputil.IPv6FindUpperProtocol (#1893)
This commit is contained in:
1 parent
e20569ce51
commit
7cfa47d569
5 files changed
+30
-45
No files matched your search
+1
-1
@@ -354,7 +354,7 @@ func parseV6(data []byte, incoming bool, fp *firewall.ParsedPacket) error {
|
||||
// and cannot drift into misreading an unknown protocol (SCTP, GRE, etc.) as a forged transport.
|
||||
proto, offset, isFragment, anyFragment, err := iputil.IPv6FindUpperProtocol(data)
|
||||
if err != nil {
|
||||
return ErrIPv6PacketTooShort
|
||||
return err
|
||||
}
|
||||
|
||||
fp.Protocol = proto
|
||||
|
||||
Reference in new issue
Block a user