From: Howard Chu Date: Sun, 14 Sep 2003 05:19:45 +0000 (+0000) Subject: ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~726 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f632af4132d81e2c70466b539349b19c5d46f69;p=openldap ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated as zero. --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 19a7a07886..baf0d1b1d9 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -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;