]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Use state->case_sensitive instead of state->conn->case_sensitive.
authorJeremy Allison <jra@samba.org>
Fri, 5 Nov 2021 23:55:06 +0000 (16:55 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 16 Nov 2021 20:21:37 +0000 (20:21 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index 6a7c4a09a142d02c9b072040cb83d18c8c735b70..d99ed45a3ae993c418f9dc46bbbd627771b9a64b 100644 (file)
@@ -1643,12 +1643,12 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx,
        }
 
        got_match = exact_match(state->has_wild,
-                               state->conn->case_sensitive,
+                               state->case_sensitive,
                                fname, mask);
        state->got_exact_match = got_match;
        if (!got_match) {
                got_match = mask_match(fname, mask,
-                                      state->conn->case_sensitive);
+                                      state->case_sensitive);
        }
 
        if(!got_match && state->check_mangled_names &&
@@ -1667,12 +1667,12 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx,
                }
 
                got_match = exact_match(state->has_wild,
-                                       state->conn->case_sensitive,
+                                       state->case_sensitive,
                                        mangled_name, mask);
                state->got_exact_match = got_match;
                if (!got_match) {
                        got_match = mask_match(mangled_name, mask,
-                                              state->conn->case_sensitive);
+                                              state->case_sensitive);
                }
        }