[PATCH] Fix tsocket on solaris
Andrew Bartlett
abartlet at samba.org
Wed Apr 7 06:14:24 MDT 2010
Solaris seems to error out (EINVAL) if sendto has a socklen parameter
that isn't the same as the sizeof() for the relevant socket type.
That is, we can't use sizeof(struct sockaddr_storage).
This does not show up on the build farm, as we use socket_wrapper, which
plays other games.
Please find attached and review my proposed patch, which instead tries
to keep the length alongside the struct sockaddr at all times.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-tevent-Always-use-a-real-length-for-the-sa_sockle.patch
Type: text/x-patch
Size: 3770 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100407/d1f43f8a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100407/d1f43f8a/attachment.pgp>
More information about the samba-technical
mailing list