#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "smbd/globals.h"
#include "auth.h"
+#include "../lib/tsocket/tsocket.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
int filename_len = 0;
char *targethost = NULL;
char *new_target = NULL;
+ char *raddr;
if (filename_start == NULL) {
DEBUG(10, ("No filename start in %s\n", target));
DEBUG(10, ("Expanding from table [%s]\n", mapfilename));
+ raddr = tsocket_address_inet_addr_string(conn->sconn->remote_address,
+ ctx);
+ if (raddr == NULL) {
+ return NULL;
+ }
+
targethost = read_target_host(
- ctx, conn->sconn->client_id.addr, mapfilename);
+ ctx, raddr, mapfilename);
if (targethost == NULL) {
DEBUG(1, ("Could not expand target host from file %s\n",
mapfilename));