summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/socket/netlink/socket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/netlink/socket.go b/pkg/sentry/socket/netlink/socket.go
index b1f6620de..c4798839e 100644
--- a/pkg/sentry/socket/netlink/socket.go
+++ b/pkg/sentry/socket/netlink/socket.go
@@ -298,7 +298,7 @@ func (s *Socket) GetSockOpt(t *kernel.Task, level int, name int, outLen int) (in
return nil, syserr.ErrInvalidArgument
}
// We don't have limit on receiving size.
- return math.MaxInt32, nil
+ return int32(math.MaxInt32), nil
default:
socket.GetSockOptEmitUnimplementedEvent(t, name)