mirror of
https://github.com/samba-team/samba.git
synced 2025-09-02 01:49:29 +03:00
s3: Remove smbd_server_fd from expand_msdfs_target
This commit is contained in:
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "../librpc/gen_ndr/ndr_netlogon.h"
|
#include "../librpc/gen_ndr/ndr_netlogon.h"
|
||||||
|
#include "smbd/globals.h"
|
||||||
|
|
||||||
#undef DBGC_CLASS
|
#undef DBGC_CLASS
|
||||||
#define DBGC_CLASS DBGC_VFS
|
#define DBGC_CLASS DBGC_VFS
|
||||||
@ -113,7 +114,6 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx,
|
|||||||
int filename_len = 0;
|
int filename_len = 0;
|
||||||
char *targethost = NULL;
|
char *targethost = NULL;
|
||||||
char *new_target = NULL;
|
char *new_target = NULL;
|
||||||
char addr[INET6_ADDRSTRLEN];
|
|
||||||
|
|
||||||
if (filename_start == NULL) {
|
if (filename_start == NULL) {
|
||||||
DEBUG(10, ("No filename start in %s\n", target));
|
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));
|
DEBUG(10, ("Expanding from table [%s]\n", mapfilename));
|
||||||
|
|
||||||
targethost = read_target_host(
|
targethost = read_target_host(
|
||||||
ctx, client_addr(smbd_server_fd(), addr, sizeof(addr)),
|
ctx, conn->sconn->client_id.addr, mapfilename);
|
||||||
mapfilename);
|
|
||||||
if (targethost == NULL) {
|
if (targethost == NULL) {
|
||||||
DEBUG(1, ("Could not expand target host from file %s\n",
|
DEBUG(1, ("Could not expand target host from file %s\n",
|
||||||
mapfilename));
|
mapfilename));
|
||||||
|
Reference in New Issue
Block a user