git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tsocket/bsd: fix bug #7140 use calculated sa_socklen for bind() in tstream_bsd_connec...
[abartlet/samba.git/.git]
/
lib
/
tsocket
/
tsocket_bsd.c
diff --git
a/lib/tsocket/tsocket_bsd.c
b/lib/tsocket/tsocket_bsd.c
index 5cd7702ff6b1aded6a814e43ae3f630b24c32451..8d1fe3208342c9a6f3bd37aab183aa71e033b0fc 100644
(file)
--- a/
lib/tsocket/tsocket_bsd.c
+++ b/
lib/tsocket/tsocket_bsd.c
@@
-2025,7
+2025,7
@@
static struct tevent_req * tstream_bsd_connect_send(TALLOC_CTX *mem_ctx,
}
if (do_bind) {
- ret = bind(state->fd, &lbsda->u.sa, s
izeof(lbsda->u.ss)
);
+ ret = bind(state->fd, &lbsda->u.sa, s
a_socklen
);
if (ret == -1) {
tevent_req_error(req, errno);
goto post;