- The argument for setsockopt is an int, not a size_t. This breaks on
64bit OS's causing the buffer not to be set (or triggers a kernel
bug on AIX due to size_t being parsed as an int and setting the
socket buffer to zero due to bad kernel error checking).
- Add a check to see if the socket buffer is large enough already,
don't make it smaller if it is.
From Niklas Edmundsson
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22701 ec53bebd-3082-4978-b11e-865c3cabbd6b