On the 'http-protocol-v2' branch: Using a NULL connection doesn't really work.

* subversion/libsvn_ra_serf/util.c
  (svn_ra_serf__discover_vcc): Use the default connection if 'conn' is
    NULL (you know, like the docstring says we will).


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/http-protocol-v2@875876 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/subversion/libsvn_ra_serf/util.c b/subversion/libsvn_ra_serf/util.c
index b4235aa..f337832 100644
--- a/subversion/libsvn_ra_serf/util.c
+++ b/subversion/libsvn_ra_serf/util.c
@@ -1358,6 +1358,12 @@
       return SVN_NO_ERROR;
     }
 
+  /* If no connection is provided, use the default one. */
+  if (! conn)
+    {
+      conn = session->conns[0];
+    }
+
   props = apr_hash_make(pool);
   path = session->repos_url.path;
   *vcc_url = NULL;