RE: BIO_do_connect does not connect (bug?)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RE: BIO_do_connect does not connect (bug?)

Frédéric Donnat-2
Hi all,

Any news about that?
Nothing seems have changed on the CVS.

Regards.

-----Original Message-----
From: Claudiu Dragalina-Paraipan [mailto:[hidden email]]
Sent: Fri 10/28/2005 3:07 PM
To: [hidden email]
Cc:
Subject: BIO_do_connect does not connect (bug?)
Hello,

I have noticed that BIO_do_connect doesn't start the connection upon
call, instead the connection is established on the first BIO_puts, in
my case.
I am not sure if this is a bug or not, but I have traced it to
bss_conn.c, function conn_ctrl, line 470:

--- snip ---
case BIO_C_DO_STATE_MACHINE:
 /* use this one to start the connection */
 if (!(data->state != BIO_CONN_S_OK))
   ret=(long)conn_state(b,data);
 else
   ret=1;
 break;
--- snip ---

Shouldn't the condition be simply data->state != BIO_CONN_S_OK ?
Latter in the same file, in functions conn_read and conn_write a check
is made with the above condition, and if the condition is true
conn_state is called, which finally creates the socket and connects.

Thank you.

Regards,

--
Claudiu Dragalina-Paraipan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]




______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]