mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Fix, errno was incorrect after SSL_read returned 0 bytes, caused slapd to
close the connection prematurely.
This commit is contained in:
parent
6bac96b0bd
commit
c81d2bb855
1 changed files with 0 additions and 4 deletions
|
|
@ -433,9 +433,7 @@ sb_tls_read( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
err = SSL_get_error( p->ssl, ret );
|
||||
if (err == SSL_ERROR_WANT_READ ) {
|
||||
sbiod->sbiod_sb->sb_trans_needs_read = 1;
|
||||
#ifdef WIN32
|
||||
errno = EWOULDBLOCK;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
sbiod->sbiod_sb->sb_trans_needs_read = 0;
|
||||
|
|
@ -461,9 +459,7 @@ sb_tls_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
err = SSL_get_error( p->ssl, ret );
|
||||
if (err == SSL_ERROR_WANT_WRITE ) {
|
||||
sbiod->sbiod_sb->sb_trans_needs_write = 1;
|
||||
#ifdef WIN32
|
||||
errno = EWOULDBLOCK;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
sbiod->sbiod_sb->sb_trans_needs_write = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue