diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-03 18:15:45 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-03 18:15:45 -0700 |
commit | 6658165d5e9cd186fea74e1581091233e8990e9b (patch) | |
tree | 13d5e5fd6d9d93adb4e60e58c5abacbbb959ecc7 /source3/modules/vfs_expand_msdfs.c | |
parent | 73d407968002587eadd0ff13eb413ddf07c78771 (diff) | |
download | samba-6658165d5e9cd186fea74e1581091233e8990e9b.tar.gz |
Stop get_peer_addr() and client_addr() from using global
statics. Part of my library cleanups.
Jeremy.
(This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
Diffstat (limited to 'source3/modules/vfs_expand_msdfs.c')
-rw-r--r-- | source3/modules/vfs_expand_msdfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c index e2a4a18bf0b..12f2c8e72b0 100644 --- a/source3/modules/vfs_expand_msdfs.c +++ b/source3/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; } |