axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 14/23: If Apache2 installed without mod-dbd enabled and session sample run then it crash. Fixed this.
Date Sat, 04 Apr 2020 15:07:22 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit ef20abc06d80f3c1315c8662cf5034943e696343
Author: Damitha N.M. Kumarage <damitha@apache.org>
AuthorDate: Tue Aug 3 10:29:03 2010 +0000

    If Apache2 installed without mod-dbd enabled and session sample run then it crash. Fixed
this.
---
 1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c b/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
index 6f034f4..5932f15 100644
--- a/1.7.0/c/src/core/transport/http/server/apache2/mod_axis2.c
+++ b/1.7.0/c/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;
     }
 


Mime
View raw message