summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-02 12:56:21 -0700
committerJeremy Allison <jra@samba.org>2007-11-02 12:56:21 -0700
commit6b7ccd3efb05291f3b8779845a3842a09bb9aa07 (patch)
tree75e9038e4dc02836cb12b3b71457ff799b809d1a /source/lib
parent81ca5853b2475f123faab3b550f0a7b24ae3c208 (diff)
downloadsamba-6b7ccd3efb05291f3b8779845a3842a09bb9aa07.tar.gz
samba-6b7ccd3efb05291f3b8779845a3842a09bb9aa07.tar.xz
samba-6b7ccd3efb05291f3b8779845a3842a09bb9aa07.zip
Fix typos in calc_sa_size, noticed by jim.brown@miami.edu
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/interfaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/interfaces.c b/source/lib/interfaces.c
index 01481c50e97..1174bf8c90b 100644
--- a/source/lib/interfaces.c
+++ b/source/lib/interfaces.c
@@ -701,9 +701,10 @@ static socklen_t calc_sa_size(struct sockaddr *psa)
socklen_t sl = sizeof(struct sockaddr_in);
#if defined(HAVE_IPV6)
if (psa->sa_family == AF_INET6) {
- salen = sizeof(struct sockaddr_in6);
+ sl = sizeof(struct sockaddr_in6);
}
#endif
+ return sl;
}
int main()