s3: Move the global variable Protocol to struct smbd_server_connection
[samba.git] / source3 / smbd / dir.c
index 137048d4d45805271718d0c5b66f6b59dac04d71..25ca5e51b4b2e98a7ac69a1f9c830beaa6c9b9d8 100644 (file)
@@ -1215,7 +1215,8 @@ bool is_visible_file(connection_struct *conn, const char *dir_path,
        }
 
        /* If it's a vetoed file, pretend it doesn't even exist */
-       if (use_veto && is_in_path(name, conn->veto_list, get_Protocol(),
+       if (use_veto && is_in_path(name, conn->veto_list,
+                                  get_Protocol(conn->sconn),
                                   conn->case_sensitive)) {
                DEBUG(10,("is_visible_file: file %s is vetoed.\n", name ));
                return False;