ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated

as zero.
This commit is contained in:
Howard Chu 2003-09-14 05:19:45 +00:00
parent 41957e5129
commit 6f632af413

View File

@ -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;