You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2019/01/10 16:49:30 UTC

svn commit: r1850963 - /subversion/trunk/subversion/libsvn_client/util.c

Author: julianfoad
Date: Thu Jan 10 16:49:30 2019
New Revision: 1850963

URL: http://svn.apache.org/viewvc?rev=1850963&view=rev
Log:
* subversion/libsvn_client/util.c
  (svn_client__pathrev_create_with_session): Assert that the session
    matches the URL.

Modified:
    subversion/trunk/subversion/libsvn_client/util.c

Modified: subversion/trunk/subversion/libsvn_client/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=1850963&r1=1850962&r2=1850963&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/util.c (original)
+++ subversion/trunk/subversion/libsvn_client/util.c Thu Jan 10 16:49:30 2019
@@ -93,6 +93,7 @@ svn_client__pathrev_create_with_session(
   pathrev->rev = rev;
   pathrev->url = apr_pstrdup(result_pool, url);
   *pathrev_p = pathrev;
+  SVN_ERR_ASSERT(svn_uri__is_ancestor(pathrev->repos_root_url, url));
   return SVN_NO_ERROR;
 }