diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/interfaces.c | 3 |
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() |