You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by da...@apache.org on 2010/08/03 12:26:45 UTC
svn commit: r981809 -
/axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c
Author: damitha
Date: Tue Aug 3 10:26:44 2010
New Revision: 981809
URL: http://svn.apache.org/viewvc?rev=981809&view=rev
Log:
When apache2 is installed without mod_dbd enabled and if session sample run then Apache2 seg faults. Fixed this.
Modified:
axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c
Modified: axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c?rev=981809&r1=981808&r2=981809&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c (original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c Tue Aug 3 10:26:44 2010
@@ -809,12 +809,15 @@ axis2_set_session(
request = (request_rec *) req;
authn_dbd_acquire_fn = APR_RETRIEVE_OPTIONAL_FN(ap_dbd_acquire);
- dbd = authn_dbd_acquire_fn(request);
+ if(authn_dbd_acquire_fn)
+ {
+ dbd = authn_dbd_acquire_fn(request);
+ }
if (!dbd)
{
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, request,
"Failed to acquire database connection to insert session for "
- "id '%s'", id);
+ "id '%s'. Check whether apache2 is installed with mod-dbd enabled", id);
return AXIS2_FAILURE;
}