diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index eb6dcae6fb..619627a770 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 = -1; + socklen_t salen = addr->sa_len; if (addr->sa_family == AF_INET) { salen = sizeof(struct sockaddr_in); |