summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2018-04-12 06:41:30 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-10 20:02:23 +0200
commit5c0345ea9bb34695dcd7be6c913748323bebe937 (patch)
tree91609b666973bd053448269313e9507672f74597 /source4/smb_server
parentdaa7b60a60520c94367e9112246482bae71c5ccd (diff)
downloadsamba-5c0345ea9bb34695dcd7be6c913748323bebe937.tar.gz
samdb: Add remote address to connect
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/trans2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/smb_server/smb/trans2.c b/source4/smb_server/smb/trans2.c
index 89402bac820..447095c5008 100644
--- a/source4/smb_server/smb/trans2.c
+++ b/source4/smb_server/smb/trans2.c
@@ -876,7 +876,12 @@ static NTSTATUS trans2_getdfsreferral(struct smbsrv_request *req,
r = talloc_zero(req, struct dfs_GetDFSReferral);
NT_STATUS_HAVE_NO_MEMORY(r);
- ldb = samdb_connect(r, req->tcon->ntvfs->event_ctx, lp_ctx, system_session(lp_ctx), 0);
+ ldb = samdb_connect(r,
+ req->tcon->ntvfs->event_ctx,
+ lp_ctx,
+ system_session(lp_ctx),
+ NULL,
+ 0);
if (ldb == NULL) {
DEBUG(2,(__location__ ": Failed to open samdb\n"));
talloc_free(r);