[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-454-g4ddf58d
Gerald Carter
jerry at samba.org
Wed Mar 26 21:59:12 GMT 2008
The branch, v3-2-test has been updated
via 4ddf58dbdc3d74cb72788ef4a2ec7587d4948c40 (commit)
from 2586dc34e0f72204749f5bf10c8135cd3a753a42 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 4ddf58dbdc3d74cb72788ef4a2ec7587d4948c40
Author: Gerald W. Carter <jerry at samba.org>
Date: Wed Mar 26 16:58:27 2008 -0500
Fix a bug in the output from print_canonical_sockaddr() fix from 36f8bafbd3dee66a8....
Make sure that IPv4 addresses are not enclised in []'s.
-----------------------------------------------------------------------
Summary of changes:
source/lib/util_sock.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index 8ceabe1..30a3b83 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -556,11 +556,17 @@ char *print_canonical_sockaddr(TALLOC_CTX *ctx,
if (ret != 0) {
return NULL;
}
+
+ if (pss->ss_family != AF_INET) {
#if defined(HAVE_IPV6)
- dest = talloc_asprintf(ctx, "[%s]", addr);
+ dest = talloc_asprintf(ctx, "[%s]", addr);
#else
- dest = talloc_asprintf(ctx, "%s", addr);
+ return NULL;
#endif
+ } else {
+ dest = talloc_asprintf(ctx, "%s", addr);
+ }
+
return dest;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list