1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Many systems don't have sa_len as part of struct sockaddr.

Revert 5c347cb46d
"Choose a better default for sockaddr length.".
Jeremy.
This commit is contained in:
Jeremy Allison 2007-12-09 14:59:07 -08:00
parent 40c26d5573
commit 677ac6adc3

View File

@ -2475,7 +2475,7 @@ int sys_getnameinfo(const struct sockaddr *psa,
int sys_connect(int fd, const struct sockaddr * addr)
{
socklen_t salen = addr->sa_len;
socklen_t salen = -1;
if (addr->sa_family == AF_INET) {
salen = sizeof(struct sockaddr_in);