I'm experimenting with subversion's client library, and it dumps core if
I don't apply this patch. Am I doing something wrong?
(cfg is NULL and the program crashes when trying to put it into a hastable).
Thanks!
Index: subversion/libsvn_ra_dav/session.c
===================================================================
--- subversion/libsvn_ra_dav/session.c (revisión: 9860)
+++ subversion/libsvn_ra_dav/session.c (copia de trabajo)
@@ -675,10 +675,12 @@
ras->callback_baton = callback_baton;
ras->compression = compression;
/* save config and server group in the auth parameter hash */
- svn_auth_set_parameter(ras->callbacks->auth_baton,
- SVN_AUTH_PARAM_CONFIG, cfg);
- svn_auth_set_parameter(ras->callbacks->auth_baton,
- SVN_AUTH_PARAM_SERVER_GROUP, server_group);
+ if(cfg)
+ svn_auth_set_parameter(ras->callbacks->auth_baton,
+ SVN_AUTH_PARAM_CONFIG, cfg);
+ if(server_group)
+ svn_auth_set_parameter(ras->callbacks->auth_baton,
+ SVN_AUTH_PARAM_SERVER_GROUP, server_group);
/* make sure we eventually destroy the uri */
apr_pool_cleanup_register(pool, &ras->root, cleanup_uri,
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 23 06:19:34 2004