From c-commits-return-233-apmail-axis-c-commits-archive=axis.apache.org@axis.apache.org Tue Aug 03 10:28:03 2010 Return-Path: Delivered-To: apmail-axis-c-commits-archive@minotaur.apache.org Received: (qmail 36789 invoked from network); 3 Aug 2010 10:28:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 10:28:03 -0000 Received: (qmail 16595 invoked by uid 500); 3 Aug 2010 10:28:03 -0000 Delivered-To: apmail-axis-c-commits-archive@axis.apache.org Received: (qmail 16581 invoked by uid 500); 3 Aug 2010 10:28:03 -0000 Mailing-List: contact c-commits-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-dev@axis.apache.org Delivered-To: mailing list c-commits@axis.apache.org Received: (qmail 16566 invoked by uid 99); 3 Aug 2010 10:28:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 10:28:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 10:28:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4D727238897D; Tue, 3 Aug 2010 10:26:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r981809 - /axis/axis2/c/core/trunk/src/core/transport/http/server/apache2/mod_axis2.c Date: Tue, 03 Aug 2010 10:26:45 -0000 To: c-commits@axis.apache.org From: damitha@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100803102645.4D727238897D@eris.apache.org> 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; }