mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Return an int32 for netlink SO_RCVBUF
Untyped integer constants default to type int and the binary package will panic if one tries to encode an int. PiperOrigin-RevId: 223890001 Change-Id: Iccc3afd6d74bad24c35d764508e450fd317b76ec
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user