summaryrefslogtreecommitdiffstats
path: root/source/smbd/connection.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-08-11 02:30:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-08-11 02:30:35 +0000
commitf393de2310e997d05674eb7f1268655373e03647 (patch)
treeafede54573462ecb7482aef97475eee686f95eb9 /source/smbd/connection.c
parente57a896f06b16fe7e336e1ae63a0c9e4cc75fd36 (diff)
downloadsamba-f393de2310e997d05674eb7f1268655373e03647.tar.gz
samba-f393de2310e997d05674eb7f1268655373e03647.tar.xz
samba-f393de2310e997d05674eb7f1268655373e03647.zip
Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions. Andrew Bartlett
Diffstat (limited to 'source/smbd/connection.c')
-rw-r--r--source/smbd/connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/connection.c b/source/smbd/connection.c
index b53ef9fb3fc..5609c2963d8 100644
--- a/source/smbd/connection.c
+++ b/source/smbd/connection.c
@@ -20,7 +20,6 @@
#include "includes.h"
-extern fstring remote_machine;
static TDB_CONTEXT *tdb;
/****************************************************************************
@@ -178,7 +177,7 @@ BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOO
}
crec.start = time(NULL);
- StrnCpy(crec.machine,remote_machine,sizeof(crec.machine)-1);
+ StrnCpy(crec.machine,get_remote_machine_name(),sizeof(crec.machine)-1);
StrnCpy(crec.addr,conn?conn->client_address:client_addr(),sizeof(crec.addr)-1);
dbuf.dptr = (char *)&crec;