Skip to content
Snippets Groups Projects
Commit 85acec92 authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

We were not remembering the allocated SSL thing in the Sockbuf.

Set flags without relying on errno (this change may be gratuitous
or wrong).
parent a4a675f9
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,7 @@ alloc_handle( Sockbuf *sb, void *ctx_arg )
return NULL;
}
sb->sb_iodata = ssl;
SSL_set_fd( ssl, ber_pvt_sb_get_desc( sb ) );
return ssl;
}
......@@ -296,14 +297,7 @@ ldap_pvt_tls_accept( Sockbuf *sb, void *ctx_arg )
err = SSL_accept( ssl );
if ( err <= 0 ) {
if (
#ifdef EWOULDBLOCK
(errno==EWOULDBLOCK) ||
#endif
#ifdef EAGAIN
(errno==EAGAIN) ||
#endif
(0)) {
if ( !SSL_want_nothing( ssl ) ) {
update_flags( sb, ssl );
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment