s3: Move the global variable Protocol to struct smbd_server_connection
[gd/samba/.git] / source3 / modules / vfs_preopen.c
index d91a03122718ca93843ba944ad0702968ac6e92a..1ecbc3aa8a8a25ce643f92aecb393376750f270f 100644 (file)
@@ -396,7 +396,7 @@ static int preopen_open(vfs_handle_struct *handle,
        }
 
        if (!is_in_path(smb_fname->base_name, state->preopen_names,
-                       get_Protocol(), true)) {
+                       get_Protocol(handle->conn->sconn), true)) {
                DEBUG(10, ("%s does not match the preopen:names list\n",
                           smb_fname_str_dbg(smb_fname)));
                return res;