Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 66895 invoked from network); 2 Oct 2006 13:57:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 13:57:47 -0000 Received: (qmail 2466 invoked by uid 500); 2 Oct 2006 13:57:45 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 2179 invoked by uid 500); 2 Oct 2006 13:57:43 -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 2168 invoked by uid 500); 2 Oct 2006 13:57:43 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 2165 invoked by uid 99); 2 Oct 2006 13:57:43 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 06:57:43 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [140.211.166.113] ([140.211.166.113:64271] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 67/DA-16499-FBA11254 for ; Mon, 02 Oct 2006 06:57:20 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 915AC1A981A; Mon, 2 Oct 2006 06:56:54 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r452043 - /webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Date: Mon, 02 Oct 2006 13:56:54 -0000 To: axis2-cvs@ws.apache.org From: dinesh@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061002135654.915AC1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dinesh Date: Mon Oct 2 06:56:53 2006 New Revision: 452043 URL: http://svn.apache.org/viewvc?view=rev&rev=452043 Log: when there is no null checking, samples give segmentation faults Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c?view=diff&rev=452043&r1=452042&r2=452043 ============================================================================== --- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original) +++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Mon Oct 2 06:56:53 2006 @@ -893,7 +893,10 @@ AXIS2_OP_CLIENT_EXECUTE(op_client, env, AXIS2_TRUE); res_msg_ctx = (axis2_msg_ctx_t *)AXIS2_OP_CLIENT_GET_MSG_CTX(op_client, env, AXIS2_WSDL_MESSAGE_LABEL_IN_VALUE); - soap_envelope = AXIS2_MSG_CTX_GET_SOAP_ENVELOPE(res_msg_ctx, env); + if (res_msg_ctx) + soap_envelope = AXIS2_MSG_CTX_GET_SOAP_ENVELOPE(res_msg_ctx, env); + else + return NULL; } if (qname_free_flag) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org