mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Make sure we don't overallocate callbacks
This commit is contained in:
parent
878466d375
commit
8c15a05b2e
1 changed files with 2 additions and 0 deletions
|
|
@ -899,6 +899,8 @@ ldap_negotiated_sasl_bind_s(
|
|||
callbacks[n].proc = NULL;
|
||||
callbacks[n].context = NULL;
|
||||
|
||||
assert( n * sizeof(sasl_callback_t) < sizeof(callbacks) );
|
||||
|
||||
rc = ldap_pvt_sasl_bind(ld, dn, saslMechanism, callbacks,
|
||||
serverControls, clientControls);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue