]> git.sur5r.net Git - openldap/commitdiff
ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated
authorHoward Chu <hyc@openldap.org>
Sun, 14 Sep 2003 05:19:45 +0000 (05:19 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 14 Sep 2003 05:19:45 +0000 (05:19 +0000)
as zero.

libraries/libldap/cyrus.c

index 19a7a078862c1b4d89cf6ca8db5a2d9406ece8c7..baf0d1b1d98987af7eecc413c1ad4068046db0e7 100644 (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;