]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:vfs_expand_msdfs: Do not open the remote address as a file
authorAndreas Schneider <asn@samba.org>
Tue, 14 Mar 2017 15:12:20 +0000 (16:12 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 15 Mar 2017 00:31:23 +0000 (01:31 +0100)
The arguments get passed in the wrong order to read_target_host().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12687

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/modules/vfs_expand_msdfs.c

index ffbfa333badf5b8b4f808b9122857903618cf371..e42d0098b32b10b792d39b6da596e907f6972903 100644 (file)
@@ -147,8 +147,7 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx,
                return NULL;
        }
 
-       targethost = read_target_host(
-               ctx, raddr, mapfilename);
+       targethost = read_target_host(ctx, mapfilename, raddr);
        if (targethost == NULL) {
                DEBUG(1, ("Could not expand target host from file %s\n",
                          mapfilename));