The Samba-Bugzilla – Attachment 3879 Details for
Bug 6040
Calling Samba print server with an aliased DNS-name fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 643 bytes, created by
Jeremy Allison
on 2009-01-15 12:34:30 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-01-15 12:34:30 UTC
Size:
643 bytes
patch
obsolete
>diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c >index e913b35..b46ff2c 100644 >--- a/source3/lib/util_sock.c >+++ b/source3/lib/util_sock.c >@@ -1940,11 +1940,12 @@ bool is_myname_or_ipaddr(const char *s) > if (!is_ipaddress(servername)) { > /* Use DNS to resolve the name, but only the first address */ > struct sockaddr_storage ss; >- if (interpret_string_addr(&ss, servername,0)) { >- print_sockaddr(name, >- sizeof(name), >+ if (interpret_string_addr(&ss, servername, 0)) { >+ char addr[INET6_ADDRSTRLEN]; >+ print_sockaddr(addr, >+ sizeof(addr), > &ss); >- servername = name; >+ servername = addr; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6040
: 3879