[Date Prev][Date Next]
Re: (ITS#8158) cldap broken for aix and solaris
On 05. juni 2015 08:59, firstname.lastname@example.org wrote:
> Yeah, the fallback... I really did not know what to use there. I knew
> sizeof(struct sockaddr_storage) would work on Linux but most likely not
> on Solaris and AIX, so I used sizeof(struct sockaddr). Unfortunately I
> have no way of testing if that really works at all for any platform so I
> guess your way is probably better...
Aha! Yes, then it should be sockaddr_storage. sockaddr breaks for
any address type which is bigger than sizeof(struct sockaddr), which
can be small. sockaddr_storage only breaks on an OS which complains
when it is too big for the specified address type.