summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-11-08 08:50:32 +0000
committergVisor bot <gvisor-bot@google.com>2021-11-08 08:50:32 +0000
commita42ea3ee63e8ba6b3a39cd1c86a879116f90fe8e (patch)
treef07ae539a9201f5fd9c88b6894343dc83c189a49 /pkg/sentry/socket
parent2c3ddc4dbfa7a32f08cb25cfa7cbf1b86245c3e5 (diff)
parent510bad19b6a71aec63b351e24b08cf6596c871b3 (diff)
Merge release-20211101.0-23-g510bad19b (automated)
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r--pkg/sentry/socket/netfilter/netfilter_abi_autogen_unsafe.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/sentry/socket/netfilter/netfilter_abi_autogen_unsafe.go b/pkg/sentry/socket/netfilter/netfilter_abi_autogen_unsafe.go
index 65e39de64..62df05937 100644
--- a/pkg/sentry/socket/netfilter/netfilter_abi_autogen_unsafe.go
+++ b/pkg/sentry/socket/netfilter/netfilter_abi_autogen_unsafe.go
@@ -27,15 +27,15 @@ func (n *nfNATTarget) SizeBytes() int {
// MarshalBytes implements marshal.Marshallable.MarshalBytes.
func (n *nfNATTarget) MarshalBytes(dst []byte) []byte {
- dst = n.Target.MarshalBytes(dst)
- dst = n.Range.MarshalBytes(dst)
+ dst = n.Target.MarshalUnsafe(dst)
+ dst = n.Range.MarshalUnsafe(dst)
return dst
}
// UnmarshalBytes implements marshal.Marshallable.UnmarshalBytes.
func (n *nfNATTarget) UnmarshalBytes(src []byte) []byte {
- src = n.Target.UnmarshalBytes(src)
- src = n.Range.UnmarshalBytes(src)
+ src = n.Target.UnmarshalUnsafe(src)
+ src = n.Range.UnmarshalUnsafe(src)
return src
}