Skip to content
Snippets Groups Projects
Commit 6cedc94c authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2944, #2956 - revert maxbuf patch from ITS#2184

Still need to think about interoperability with other versions, vendors...
parent 4e3c30bb
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment