Oded Arbel wrote:
>
> another problem with an SSL connection, is that if the socket connection
> in conn_open_tcp() called from conn_open_sll() fails, it returns NULL,
> but conn_open_ssl() immidietly tries to refer to it as initialized
> structure - which of course causes Kannel to crash.
> conn_open_ssl() should check whether the socket was successfuly opened,
> returning NULL if not, so adding this -
>
> if (!ret)
> return NULL;
>
> immidietly after conn_open_tcp() will solve the problem.
you're right.
BTW, I'm wondering if the part:
/*
* make the socket is non-blocking while we do SSL_connect
*/
if (socket_set_blocking(ret->fd, 0) < 0) {
goto error;
}
is necessary in conn_open_ssl() because the socket is already set to
non-blocking mode in conn_wrap_fd()?
I'll fix the issue you were raising here Oded.
Stipe
[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG
M�nsterstr. 248
40470 D�sseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are