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

Fix previous commit, wrong if condition

parent ed871b99
Branches
Tags
No related merge requests found
......@@ -312,7 +312,7 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
ber_pvt_sb_buf_destroy( &p->buf_out );
#endif
sasl_getprop( p->sasl_context, SASL_MAXOUTBUF, (const void **)&max );
if ( len > *max )
if ( len > *max - 100 )
len = *max - 100; /* For safety margin */
ret = sasl_encode( p->sasl_context, buf, len,
(SASL_CONST char **)&p->buf_out.buf_base,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment