summaryrefslogtreecommitdiff
path: root/source3/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
commit6665739a1634f72d0d80fb41e29133f7bc3f8f7b (patch)
treef7baf3144f2b8ddec48a26161252cc9f8657278e /source3/lib
parent329365684bca99bf9020b6638a1357df65c1d938 (diff)
downloadsamba-6665739a1634f72d0d80fb41e29133f7bc3f8f7b.tar.gz
samba-6665739a1634f72d0d80fb41e29133f7bc3f8f7b.tar.bz2
samba-6665739a1634f72d0d80fb41e29133f7bc3f8f7b.zip
Fix typos in calc_sa_size, noticed by jim.brown@miami.edu
Jeremy. (This used to be commit 6b7ccd3efb05291f3b8779845a3842a09bb9aa07)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/interfaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c
index 01481c50e9..1174bf8c90 100644
--- a/source3/lib/interfaces.c
+++ b/source3/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()