diff options
author | damitha | 2010-08-03 10:26:44 +0000 |
---|---|---|
committer | damitha | 2010-08-03 10:26:44 +0000 |
commit | bd94e30ddffbf4fc04ee3eb0bd651a8e1321114c (patch) | |
tree | b51e7f435d2ca1c9cecbbdcf2b7b743b51f9fa78 /src/core/transport/http/server | |
parent | 6352a132dac3f34ca882dc0c869f17d146b37909 (diff) | |
download | axis2c-bd94e30ddffbf4fc04ee3eb0bd651a8e1321114c.tar.gz axis2c-bd94e30ddffbf4fc04ee3eb0bd651a8e1321114c.tar.bz2 |
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
Diffstat (limited to 'src/core/transport/http/server')
-rw-r--r-- | src/core/transport/http/server/apache2/mod_axis2.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |