Skip to content
Snippets Groups Projects
Commit 8c15a05b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Make sure we don't overallocate callbacks

parent 878466d3
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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