]> git.sur5r.net Git - openldap/commitdiff
ITS#2944, ITS#2956: revert maxbuf patch
authorKurt Zeilenga <kurt@openldap.org>
Tue, 24 Feb 2004 20:47:08 +0000 (20:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 24 Feb 2004 20:47:08 +0000 (20:47 +0000)
libraries/libldap/cyrus.c

index 6cc4861ef5461294fd210e751c9938cbfae280a5..8bdfc40fd033dff2408b0085651f1d768ebd1e54 100644 (file)
@@ -356,14 +356,11 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
        /* now encode the next packet. */
 #if SASL_VERSION_MAJOR >= 2
        ber_pvt_sb_buf_init( &p->buf_out );
-       /* sasl v2 makes sure this number is correct */
-       if ( len > *p->sasl_maxbuf )
-               len = *p->sasl_maxbuf;
 #else
        ber_pvt_sb_buf_destroy( &p->buf_out );
+#endif
        if ( len > *p->sasl_maxbuf - 100 )
                len = *p->sasl_maxbuf - 100;    /* For safety margin */
-#endif
        ret = sasl_encode( p->sasl_context, buf, len,
                (SASL_CONST char **)&p->buf_out.buf_base,
                (unsigned *)&p->buf_out.buf_size );