mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
cleanup last commit, add commit
This commit is contained in:
parent
03ec37823c
commit
b6bd7296ac
1 changed files with 5 additions and 6 deletions
|
|
@ -352,7 +352,7 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
||||||
/* Still have something left?? */
|
/* Still have something left?? */
|
||||||
if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
|
if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
|
||||||
errno = EAGAIN;
|
errno = EAGAIN;
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -384,11 +384,10 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
||||||
p->buf_out.buf_end = p->buf_out.buf_size;
|
p->buf_out.buf_end = p->buf_out.buf_size;
|
||||||
|
|
||||||
ret = ber_pvt_sb_do_write( sbiod, &p->buf_out );
|
ret = ber_pvt_sb_do_write( sbiod, &p->buf_out );
|
||||||
#if 0 /* retry => re-sasl_encode, that would be bad */
|
|
||||||
if ( ret <= 0 ) {
|
/* return number of bytes encoded, not written, to ensure
|
||||||
return ret;
|
* no byte is encoded twice (even if only sent once).
|
||||||
}
|
*/
|
||||||
#endif
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue