From: Kurt Zeilenga Date: Fri, 12 May 2000 19:41:18 +0000 (+0000) Subject: Make sure we don't overallocate callbacks X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2995 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c15a05b2ee8df296cf0a5ef12c1c9f3269e312a;p=openldap Make sure we don't overallocate callbacks --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 10bc3f2bac..76a4ef84d3 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -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);