You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2007/12/17 07:11:26 UTC
svn commit: r604778 -
/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c
Author: kaushalye
Date: Sun Dec 16 22:11:22 2007
New Revision: 604778
URL: http://svn.apache.org/viewvc?rev=604778&view=rev
Log:
If a wrong alog suite is specified, there should be a failure returned.
Modified:
webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c
Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c?rev=604778&r1=604777&r2=604778&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/builder/algorithmsuite_builder.c Sun Dec 16 22:11:22 2007
@@ -58,6 +58,7 @@
(axiom_element_t *) axiom_node_get_data_element(algo_node, env);
if (algo_element)
{
+ axis2_status_t status = AXIS2_FAILURE;
axis2_char_t *algosuite_string = NULL;
algosuite_string = axiom_element_get_localname(algo_element, env);
@@ -65,8 +66,11 @@
{
return NULL;
}
- rp_algorithmsuite_set_algosuite(algorithmsuite, env,
+ status = rp_algorithmsuite_set_algosuite(algorithmsuite, env,
algosuite_string);
+ if(AXIS2_FAILURE == status){
+ return NULL;
+ }
assertion =
neethi_assertion_create_with_args(env,
(void *)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org