[SCM] Samba Shared Repository - branch v3-2-test updated
-initial-v3-2-unstable-161-g4d7badb
Jim Brown
jim.brown at miami.edu
Fri Nov 2 19:04:08 GMT 2007
It looks like there are two mistakes in function calc_sa_size.
salen instead of sl.
Not returning a value.
-----Original Message-----
From: samba-cvs-bounces+jim.brown=miami.edu at lists.samba.org
[mailto:samba-cvs-bounces+jim.brown=miami.edu at lists.samba.org] On Behalf Of
Jeremy Allison
Sent: Friday, November 02, 2007 5:26 PM
To: samba-cvs at samba.org
Subject: [SCM] Samba Shared Repository - branch v3-2-test updated
-initial-v3-2-unstable-161-g4d7badb
The branch, v3-2-test has been updated
via 4d7badb0c44f287034f58d9a412e662c0fbecdc9 (commit)
from 8c73e19f51d6e3f520cf44dd22f9b9584d4b460f (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9
Author: Jeremy Allison <jra at samba.org>
Date: Fri Nov 2 10:25:34 2007 -0700
Fix Solaris by ensuring we use the IPv4 or IPv6 length
in any getnameinfo calls.
Jeremy
-----------------------------------------------------------------------
Changeset truncated at 500 lines:
diff --git a/source/lib/interfaces.c b/source/lib/interfaces.c
index 38abb92..01481c5 100644
--- a/source/lib/interfaces.c
+++ b/source/lib/interfaces.c
@@ -696,6 +696,16 @@ int get_interfaces(struct iface_struct *ifaces, int
max_interfaces)
#ifdef AUTOCONF_TEST
/* this is the autoconf driver to test get_interfaces() */
+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);
+ }
+#endif
+}
+
More information about the samba-technical
mailing list