summaryrefslogtreecommitdiffstats
path: root/source/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-03 18:15:45 -0700
committerJeremy Allison <jra@samba.org>2007-11-03 18:15:45 -0700
commite848506c858bd16706c1d7f6b4b032005512b8ac (patch)
tree5e3ac1ad96e052b4c042c584a43620859031bdda /source/modules
parentd50d14c300abc83b7015718ec48acc8b3227a273 (diff)
downloadsamba-e848506c858bd16706c1d7f6b4b032005512b8ac.tar.gz
samba-e848506c858bd16706c1d7f6b4b032005512b8ac.tar.xz
samba-e848506c858bd16706c1d7f6b4b032005512b8ac.zip
Stop get_peer_addr() and client_addr() from using global
statics. Part of my library cleanups. Jeremy.
Diffstat (limited to 'source/modules')
-rw-r--r--source/modules/vfs_expand_msdfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/modules/vfs_expand_msdfs.c b/source/modules/vfs_expand_msdfs.c
index e2a4a18bf0b..12f2c8e72b0 100644
--- a/source/modules/vfs_expand_msdfs.c
+++ b/source/modules/vfs_expand_msdfs.c
@@ -55,6 +55,7 @@ static bool read_target_host(const char *mapfile, pstring targethost)
DEBUG(10, ("Scanning mapfile [%s]\n", mapfile));
while (x_fgets(buf, sizeof(buf), f) != NULL) {
+ char addr[INET6_ADDRSTRLEN];
if ((strlen(buf) > 0) && (buf[strlen(buf)-1] == '\n'))
buf[strlen(buf)-1] = '\0';
@@ -70,7 +71,7 @@ static bool read_target_host(const char *mapfile, pstring targethost)
*space = '\0';
- if (strncmp(client_addr(), buf, strlen(buf)) == 0) {
+ if (strncmp(client_addr(addr), buf, strlen(buf)) == 0) {
found = True;
break;
}