From bd94e30ddffbf4fc04ee3eb0bd651a8e1321114c Mon Sep 17 00:00:00 2001 From: damitha Date: Tue, 3 Aug 2010 10:26:44 +0000 Subject: When apache2 is installed without mod_dbd enabled and if session sample run then Apache2 seg faults. Fixed this. git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@981809 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/server/apache2/mod_axis2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/transport/http/server/apache2/mod_axis2.c b/src/core/transport/http/server/apache2/mod_axis2.c index 6f034f4..5932f15 100644 --- a/src/core/transport/http/server/apache2/mod_axis2.c +++ b/src/core/transport/http/server/apache2/mod_axis2.c @@ -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; } -- cgit v1.1-32-gdbae