You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/10/02 15:56:54 UTC
svn commit: r452043 -
/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
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