Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 19057 invoked from network); 14 Oct 2007 10:48:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2007 10:48:09 -0000 Received: (qmail 83437 invoked by uid 500); 14 Oct 2007 10:47:56 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 83316 invoked by uid 500); 14 Oct 2007 10:47:56 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 83305 invoked by uid 500); 14 Oct 2007 10:47:56 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 83302 invoked by uid 99); 14 Oct 2007 10:47:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 03:47:56 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 10:48:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D26241A9832; Sun, 14 Oct 2007 03:47:17 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r584527 - /webservices/axis2/trunk/c/src/core/deployment/conf_init.c Date: Sun, 14 Oct 2007 10:47:17 -0000 To: axis2-cvs@ws.apache.org From: damitha@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071014104717.D26241A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: damitha Date: Sun Oct 14 03:47:16 2007 New Revision: 584527 URL: http://svn.apache.org/viewvc?rev=584527&view=rev Log: There was no check on the return value of AXIS2_SVC_SKELETON_INIT_WITH_CONF(). Fixed this by writing to the error log and returning failure if this function fail Modified: webservices/axis2/trunk/c/src/core/deployment/conf_init.c Modified: webservices/axis2/trunk/c/src/core/deployment/conf_init.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/conf_init.c?rev=584527&r1=584526&r2=584527&view=diff ============================================================================== --- webservices/axis2/trunk/c/src/core/deployment/conf_init.c (original) +++ webservices/axis2/trunk/c/src/core/deployment/conf_init.c Sun Oct 14 03:47:16 2007 @@ -218,11 +218,26 @@ impl_class = axutil_class_loader_create_dll(env, impl_info_param); + if(!impl_class) + { + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, + "Service %s could not be loaded", + axis2_svc_get_name(svc_desc, env)); + axutil_allocator_switch_to_local_pool(env->allocator); + return AXIS2_FAILURE; + } axis2_svc_set_impl_class(svc_desc, env, impl_class); - AXIS2_SVC_SKELETON_INIT_WITH_CONF((axis2_svc_skeleton_t + status = AXIS2_SVC_SKELETON_INIT_WITH_CONF((axis2_svc_skeleton_t *) impl_class, env, conf); axutil_allocator_switch_to_local_pool(env->allocator); + if(!status) + { + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, + "Service %s initialization Failed", + axis2_svc_get_name(svc_desc, env)); + return AXIS2_FAILURE; + } } } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org