You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/12/06 15:50:21 UTC
[jira] Resolved: (AXIS2C-311) axis2_engine_invoke_phases(engine,
env, global_out_phase, msg_ctx) method executes without checking whether
global_out_phase is null.
[ http://issues.apache.org/jira/browse/AXIS2C-311?page=all ]
Samisa Abeysinghe resolved AXIS2C-311.
--------------------------------------
Resolution: Fixed
Applied the patch and tested. Thanks to Manjula for the patch.
> axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx) method executes without checking whether global_out_phase is null.
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2C-311
> URL: http://issues.apache.org/jira/browse/AXIS2C-311
> Project: Axis2-C
> Issue Type: Bug
> Components: core/engine
> Affects Versions: Current (Nightly)
> Reporter: Manjula Peiris
> Assigned To: Samisa Abeysinghe
> Fix For: 0.96
>
>
> axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx) method executes without checking whether global_out_phase is null.The patch below will fix this problem.
> --- /home/manjula/axis2/c/modules/core/engine/engine.c (revision 450856)
> +++ /home/manjula/axis2/c/modules/core/engine/engine.c (working copy)
> @@ -285,7 +285,8 @@
> if (conf)
> {
> axis2_array_list_t *global_out_phase = AXIS2_CONF_GET_OUT_PHASES(conf, env);
> - axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx);
> + if(global_out_phase)
> + axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx);
> }
> }
> }
> @@ -305,7 +306,9 @@
> if (conf)
> {
> axis2_array_list_t *global_out_phase = AXIS2_CONF_GET_OUT_PHASES(conf, env);
> - axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx);
> + if(global_out_phase)
> + axis2_engine_invoke_phases(engine, env, global_out_phase, msg_ctx);
> +
> }
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org