summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-09 14:59:07 -0800
committerJeremy Allison <jra@samba.org>2007-12-09 14:59:07 -0800
commit632ab7dc2ed838c29a9ddac1d12053a3dc99d9eb (patch)
treeacaf8ebb2007bffbe01a7b488f69e576d1d19aef /source3
parentf78ce189c29c873b45ada282edce050fb0186c39 (diff)
downloadsamba-632ab7dc2ed838c29a9ddac1d12053a3dc99d9eb.tar.gz
samba-632ab7dc2ed838c29a9ddac1d12053a3dc99d9eb.tar.bz2
samba-632ab7dc2ed838c29a9ddac1d12053a3dc99d9eb.zip
Many systems don't have sa_len as part of struct sockaddr.
Revert 5c347cb46d85d04bbba7c99dca7ff9628f977d84 "Choose a better default for sockaddr length.". Jeremy. (This used to be commit 677ac6adc38b0747f825ee597e0502277a8f74b1)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 619627a770..eb6dcae6fb 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -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);