git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f19c914
)
Allow AF_UNIX for open_socket_out
author
Volker Lendecke
<vl@samba.org>
Fri, 5 Jun 2009 22:47:53 +0000
(
00:47
+0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 6 Jun 2009 08:42:54 +0000
(10:42 +0200)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 40e2887440f8f48f1d153990d0daf1f1eec4468f..cf1bb7973eb626c1c3a73337982868e38fb9e956 100644
(file)
--- a/
source3/lib/util_sock.c
+++ b/
source3/lib/util_sock.c
@@
-1018,6
+1018,10
@@
struct tevent_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
state->salen = sizeof(struct sockaddr_in);
}
+ if (pss->ss_family == AF_UNIX) {
+ state->salen = sizeof(struct sockaddr_un);
+ }
+
print_sockaddr(addr, sizeof(addr), &state->ss);
DEBUG(3,("Connecting to %s at port %u\n", addr, (unsigned int)port));