diff options
author | Jeremy Allison <jra@samba.org> | 2015-12-16 11:04:20 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-01-06 10:07:18 +0100 |
commit | 6b1c418f05417462af96ab223fe74908a778c80b (patch) | |
tree | fa61e3b2a8840c0c271af187e5829a05434801bb | |
parent | 76213b06292e865d36c04f8e98e45105cf71e838 (diff) | |
download | samba-6b1c418f05417462af96ab223fe74908a778c80b.tar.gz |
s3: libsmb: Correctly initialize the list head when keeping a list of primary followed by DFS connections.
Greatly helped by <shargagan@novell.com> to
track down this issue.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11624
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Dec 18 01:02:55 CET 2015 on sn-devel-144
(cherry picked from commit d7feb1879ee711598540049c2c5eccc80fd6f1e5)
-rw-r--r-- | source3/libsmb/libsmb_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index 0a58d8cc9fa..6e8e3c37d32 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -628,7 +628,7 @@ SMBC_server_internal(TALLOC_CTX *ctx, } ZERO_STRUCTP(srv); - srv->cli = c; + DLIST_ADD(srv->cli, c); srv->dev = (dev_t)(str_checksum(server) ^ str_checksum(share)); srv->no_pathinfo = False; srv->no_pathinfo2 = False; @@ -824,7 +824,7 @@ SMBC_attr_server(TALLOC_CTX *ctx, } ZERO_STRUCTP(ipc_srv); - ipc_srv->cli = ipc_cli; + DLIST_ADD(ipc_srv->cli, ipc_cli); nt_status = cli_rpc_pipe_open_noauth( ipc_srv->cli, &ndr_table_lsarpc, &pipe_hnd); |