Revert "s3: Move the global variable Protocol to struct smbd_server_connection"
[obnox/samba/samba-obnox.git] / source3 / smbd / dir.c
index 25ca5e51b4b2e98a7ac69a1f9c830beaa6c9b9d8..137048d4d45805271718d0c5b66f6b59dac04d71 100644 (file)
@@ -1215,8 +1215,7 @@ 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(conn->sconn),
+       if (use_veto && is_in_path(name, conn->veto_list, get_Protocol(),
                                   conn->case_sensitive)) {
                DEBUG(10,("is_visible_file: file %s is vetoed.\n", name ));
                return False;