axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Leland" <st...@pouchapond.com>
Subject crash when ssl cert's file name wrong
Date Wed, 04 May 2011 01:22:44 GMT
Did a clean build today of an update to revision 1099213, with openssl 
0.9.8r.  When given a bad cert file name in axis2.xml (no file by that name) 
it crashes in axis2_callback_invoke_on_complete().

src\core\clientapi\callback.c line 119
    callback->msg_ctx = axis2_async_result_get_result(result, env); // 
callee protects itself from a null argument and returns null.
    axis2_msg_ctx_increment_ref(callback->msg_ctx, env);             // 
callee uses null msg_ctx without validation.

the obvious fix seems to do the trick: src\core\contextmsg_ctx.c line 570
    if (msg_ctx)
        msg_ctx->ref++;

Regards,
Steve Leland 



---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message