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:
Ian Gudger
2018-12-03 17:03:15 -08:00
committed by Shentubot
parent edbd8a86d2
commit 5560615c53
+1 -1
View File
@@ -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)