mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix ITS#3139, empty output buffer when sb_sasl_write fails
This commit is contained in:
parent
74bfae5c22
commit
9da35acf44
1 changed files with 4 additions and 1 deletions
|
|
@ -374,8 +374,11 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
p->buf_out.buf_end = p->buf_out.buf_size;
|
||||
|
||||
ret = ber_pvt_sb_do_write( sbiod, &p->buf_out );
|
||||
if ( ret <= 0 )
|
||||
if ( ret <= 0 ) {
|
||||
/* caller will retry, so clear this buffer out */
|
||||
p->buf_out.buf_ptr = p->buf_out.buf_end;
|
||||
return ret;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue