diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-18 19:57:21 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-26 22:35:52 +0200 |
commit | e1055701ff94e7cd548fae76ce479cc7278c41e7 (patch) | |
tree | 8c28a406a0b94f8dc9f3723b659f3b5851b5bd44 | |
parent | 1991c2a8ee71dc1d6841d619ef323131c71137fa (diff) | |
download | samba-e1055701ff94e7cd548fae76ce479cc7278c41e7.tar.gz samba-e1055701ff94e7cd548fae76ce479cc7278c41e7.tar.bz2 samba-e1055701ff94e7cd548fae76ce479cc7278c41e7.zip |
s3: Remove smbd_server_fd from expand_msdfs_target
-rw-r--r-- | source3/modules/vfs_expand_msdfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c index 9fe9ef4a31..d2d334808f 100644 --- a/source3/modules/vfs_expand_msdfs.c +++ b/source3/modules/vfs_expand_msdfs.c @@ -19,6 +19,7 @@ #include "includes.h" #include "../librpc/gen_ndr/ndr_netlogon.h" +#include "smbd/globals.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_VFS @@ -113,7 +114,6 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx, int filename_len = 0; char *targethost = NULL; char *new_target = NULL; - char addr[INET6_ADDRSTRLEN]; if (filename_start == NULL) { DEBUG(10, ("No filename start in %s\n", target)); @@ -137,8 +137,7 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx, DEBUG(10, ("Expanding from table [%s]\n", mapfilename)); targethost = read_target_host( - ctx, client_addr(smbd_server_fd(), addr, sizeof(addr)), - mapfilename); + ctx, conn->sconn->client_id.addr, mapfilename); if (targethost == NULL) { DEBUG(1, ("Could not expand target host from file %s\n", mapfilename)); |