From 6f632af4132d81e2c70466b539349b19c5d46f69 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 14 Sep 2003 05:19:45 +0000 Subject: [PATCH] ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated as zero. --- libraries/libldap/cyrus.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5