s3: Make the implicit reference to Protocol in mask_match() explicit
[samba.git] / source3 / smbd / reply.c
index 682f56ff33e834c0dc94d2b42b140d387f10af27..a113a9d98261487873ab536da695238cec431073 100644 (file)
@@ -2638,7 +2638,7 @@ NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
                                continue;
                        }
 
-                       if(!mask_match(dname, fname_mask,
+                       if(!mask_match(dname, fname_mask, get_Protocol(),
                                       conn->case_sensitive)) {
                                TALLOC_FREE(frame);
                                TALLOC_FREE(talloced);
@@ -6337,7 +6337,8 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
                        continue;
                }
 
-               if(!mask_match(dname, fname_src_mask, conn->case_sensitive)) {
+               if(!mask_match(dname, fname_src_mask, get_Protocol(),
+                              conn->case_sensitive)) {
                        TALLOC_FREE(talloced);
                        continue;
                }
@@ -6968,7 +6969,7 @@ void reply_copy(struct smb_request *req)
                                continue;
                        }
 
-                       if(!mask_match(dname, fname_src_mask,
+                       if(!mask_match(dname, fname_src_mask, get_Protocol(),
                                       conn->case_sensitive)) {
                                TALLOC_FREE(talloced);
                                continue;