]>
Commit | Line | Data |
---|---|---|
1d13e637 AF |
1 | From 8368c6336f557220d6b2a088e291c5ce61f80f9e Mon Sep 17 00:00:00 2001 |
2 | From: Jeremy Allison <jra@samba.org> | |
3 | Date: Wed, 16 Dec 2015 11:04:20 -0800 | |
4 | Subject: [PATCH] s3: libsmb: Correctly initialize the list head when keeping a | |
5 | list of primary followed by DFS connections. | |
6 | ||
7 | Greatly helped by <shargagan@novell.com> to | |
8 | track down this issue. | |
9 | ||
10 | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11624 | |
11 | ||
12 | Signed-off-by: Jeremy Allison <jra@samba.org> | |
13 | Reviewed-by: Volker Lendecke <vl@samba.org> | |
14 | ||
15 | Autobuild-User(master): Volker Lendecke <vl@samba.org> | |
16 | Autobuild-Date(master): Fri Dec 18 01:02:55 CET 2015 on sn-devel-144 | |
17 | ||
18 | (cherry picked from commit d7feb1879ee711598540049c2c5eccc80fd6f1e5) | |
19 | --- | |
20 | source3/libsmb/libsmb_server.c | 4 ++-- | |
21 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
22 | ||
23 | diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c | |
24 | index 45be660..e7416e0 100644 | |
25 | --- a/source3/libsmb/libsmb_server.c | |
26 | +++ b/source3/libsmb/libsmb_server.c | |
27 | @@ -634,7 +634,7 @@ again: | |
28 | } | |
29 | ||
30 | ZERO_STRUCTP(srv); | |
31 | - srv->cli = c; | |
32 | + DLIST_ADD(srv->cli, c); | |
33 | srv->dev = (dev_t)(str_checksum(server) ^ str_checksum(share)); | |
34 | srv->no_pathinfo = False; | |
35 | srv->no_pathinfo2 = False; | |
36 | @@ -821,7 +821,7 @@ SMBC_attr_server(TALLOC_CTX *ctx, | |
37 | } | |
38 | ||
39 | ZERO_STRUCTP(ipc_srv); | |
40 | - ipc_srv->cli = ipc_cli; | |
41 | + DLIST_ADD(ipc_srv->cli, ipc_cli); | |
42 | ||
43 | nt_status = cli_rpc_pipe_open_noauth( | |
44 | ipc_srv->cli, &ndr_table_lsarpc.syntax_id, &pipe_hnd); | |
45 | -- | |
46 | 2.7.4 | |
47 |