I have found !

I explain what's wrong (exactly, what i've understood ;) if someone have the
same pb ....

It was used in a FTP server application, for the data connection.
Due to a (stupid) error, the message '150 about to open data connection' was
sent AFTER SSL_accept was called.
In fact the server was waiting the ClientHello message, which was never sent
because the client was waiting on the control connection the message 150

The real sequence was:
client: pasv, list

server: SSL_accept on data connection

client: waiting for message on control connection to start handshake

server: ERROR_READ because missing ClientHello
nothing more to read, so SSL_accept fails
the function returns, and, due to this bug, the message:
150 about to open data connection
is sent

client: send the ClientHello

server: close data connection


I've just changed the order of send_message(150) and SSL_accept and all works
fine now.

I've just wasted my time on a rather stupid error

Thx for help

Pierre

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to