Author: manjula
Date: Wed Oct 8 03:16:04 2008
New Revision: 702795
URL: http://svn.apache.org/viewvc?rev=702795&view=rev
Log:
Prevent putting body child node to nodes_to_encrypt list, when there is no
child elements inside the body node.
Modified:
webservices/rampart/trunk/c/src/util/rampart_context.c
Modified: webservices/rampart/trunk/c/src/util/rampart_context.c
URL:
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_context.c?rev=702795&r1=702794&r2=702795&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_context.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_context.c Wed Oct 8 03:16:04
2008
@@ -2259,7 +2259,10 @@
}
else
{
- axutil_array_list_add(nodes_to_sign_or_encrypt, env,
body_child_node);
+ if(body_child_node)
+ {
+ axutil_array_list_add(nodes_to_sign_or_encrypt, env,
body_child_node);
+ }
}
return AXIS2_SUCCESS;