Author: damitha
Date: Wed Oct 8 01:52:02 2008
New Revision: 702759
URL: http://svn.apache.org/viewvc?rev=702759&view=rev
Log:
Fixing double free of rampart context property
Modified:
webservices/sandesha/trunk/c/src/util/ack_mgr.c
Modified: webservices/sandesha/trunk/c/src/util/ack_mgr.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/ack_mgr.c?rev=702759&r1=702758&r2=702759&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/ack_mgr.c (original)
+++ webservices/sandesha/trunk/c/src/util/ack_mgr.c Wed Oct 8 01:52:02 2008
@@ -50,6 +50,7 @@
axis2_endpoint_ref_t *temp_to = NULL;
axis2_msg_ctx_t *ack_msg_ctx = NULL;
axutil_property_t *property = NULL;
+ axutil_property_t *new_property = NULL;
sandesha2_msg_ctx_t *ack_rm_msg = NULL;
/*axiom_soap_envelope_t *soap_env = NULL;*/
axis2_op_ctx_t *op_ctx = NULL;
@@ -84,10 +85,18 @@
ack_msg_ctx = sandesha2_utils_create_new_related_msg_ctx(env, ref_rm_msg);
property = axis2_msg_ctx_get_property(ref_msg, env, RAMPART_CONTEXT);
- axis2_msg_ctx_set_property(ack_msg_ctx, env, RAMPART_CONTEXT, property);
+ if(property)
+ {
+ new_property = axutil_property_create_with_args(env,
AXIS2_SCOPE_REQUEST, AXIS2_FALSE, 0,
+ axutil_property_get_value(property, env));
+ if(new_property)
+ {
+ axis2_msg_ctx_set_property(ack_msg_ctx, env, RAMPART_CONTEXT,
new_property);
+ }
+ }
- property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST,
- AXIS2_FALSE, 0, AXIS2_VALUE_TRUE);
+ property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST,
AXIS2_FALSE, 0,
+ AXIS2_VALUE_TRUE);
if(property)
{
axis2_msg_ctx_set_property(ack_msg_ctx, env,
SANDESHA2_APPLICATION_PROCESSING_DONE, property);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]