svn commit: r197994 - user/des/svnsup/src/distill

Dag-Erling Smorgrav des at FreeBSD.org
Mon Oct 12 17:09:35 UTC 2009


Author: des
Date: Mon Oct 12 17:09:35 2009
New Revision: 197994
URL: http://svn.freebsd.org/changeset/base/197994

Log:
  libsvn 1.6 segfaults if the config argument to svn_ra_open3() is NULL.
  Pass in an empty hash instead.

Modified:
  user/des/svnsup/src/distill/distill.c

Modified: user/des/svnsup/src/distill/distill.c
==============================================================================
--- user/des/svnsup/src/distill/distill.c	Mon Oct 12 17:03:57 2009	(r197993)
+++ user/des/svnsup/src/distill/distill.c	Mon Oct 12 17:09:35 2009	(r197994)
@@ -43,6 +43,7 @@ int verbose;
 static int
 distill(const char *url, unsigned long revision)
 {
+	apr_hash_t *config;
 	apr_pool_t *pool;
 	apr_status_t status;
 	svn_auth_provider_object_t *auth_provider;
@@ -64,8 +65,9 @@ distill(const char *url, unsigned long r
 	svn_auth_open(&ra_callbacks.auth_baton, auth_providers, pool);
 
 	/* open a connection to the repo */
+	config = apr_hash_make(pool);
 	error = svn_ra_open3(&ra_session, url, NULL, &ra_callbacks,
-	    NULL, NULL, pool);
+	    NULL, config, pool);
 	SVNSUP_SVN_ERROR(error, "svn_ra_open3()");
 
 	/* get revision metadata */


More information about the svn-src-user mailing list