From 8c15a05b2ee8df296cf0a5ef12c1c9f3269e312a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 12 May 2000 19:41:18 +0000 Subject: [PATCH] Make sure we don't overallocate callbacks --- libraries/libldap/sasl.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5