mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated
as zero.
This commit is contained in:
parent
41957e5129
commit
6f632af413
@ -153,6 +153,9 @@ sb_sasl_setup( Sockbuf_IO_Desc *sbiod, void *arg )
|
||||
}
|
||||
sasl_getprop( p->sasl_context, SASL_MAXOUTBUF,
|
||||
(SASL_CONST void **) &p->sasl_maxbuf );
|
||||
|
||||
if ( p->sasl_maxbuf == 0 )
|
||||
p->sasl_maxbuf = SASL_MAX_BUFF_SIZE;
|
||||
|
||||
sbiod->sbiod_pvt = p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user