aboutsummaryrefslogtreecommitdiffstats
path: root/main/subversion/CVE-2020-17525.patch
blob: ca59b7914a5d0131634519c435f8c31b3dee2535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: subversion/libsvn_repos/config_file.c
===================================================================
--- a/subversion/libsvn_repos/config_file.c	(revision 1883994)
+++ b/subversion/libsvn_repos/config_file.c	(working copy)
@@ -237,6 +237,10 @@ get_repos_config(svn_stream_t **stream,
     {
       /* Search for a repository in the full path. */
       repos_root_dirent = svn_repos_find_root_path(dirent, scratch_pool);
+      if (repos_root_dirent == NULL)
+        return svn_error_trace(handle_missing_file(stream, checksum, access,
+                                                   url, must_exist,
+                                                   svn_node_none));
 
       /* Attempt to open a repository at repos_root_dirent. */
       SVN_ERR(svn_repos_open3(&access->repos, repos_root_dirent, NULL,