[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

coredump! What am I doing wrong?

From: Nicolás Lichtmaier <nick_at_reloco.com.ar>
Date: 2004-05-23 06:19:21 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.