mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
ITS#4935 SASL_MAX_BUFF_SIZE should be 2^24 - 1
This commit is contained in:
parent
f810e6ed41
commit
7eb1f62f9d
2 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ sb_sasl_pkt_length( const unsigned char *buf, int debuglevel )
|
|||
| buf[2] << 8
|
||||
| buf[3];
|
||||
|
||||
if ( size > SASL_MAX_BUFF_SIZE ) {
|
||||
if ( size >= SASL_MAX_BUFF_SIZE ) {
|
||||
/* somebody is trying to mess me up. */
|
||||
ber_log_printf( LDAP_DEBUG_ANY, debuglevel,
|
||||
"sb_sasl_pkt_length: received illegal packet length "
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include <sasl.h>
|
||||
#endif
|
||||
|
||||
#define SASL_MAX_BUFF_SIZE 65536
|
||||
#define SASL_MAX_BUFF_SIZE (0xffffff)
|
||||
#define SASL_MIN_BUFF_SIZE 4096
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue