From: Kurt Zeilenga Date: Thu, 20 Dec 2001 20:11:03 +0000 (+0000) Subject: Fix cache debugging (ITS#1501) based upon patch provided by X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~587 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6ca3ed1b1ed4b0a8eaf1f59ec2c083c2ffa135bf;p=openldap Fix cache debugging (ITS#1501) based upon patch provided by Will Day . --- diff --git a/libraries/libldap/cache.c b/libraries/libldap/cache.c index 82212582c1..b53a1b5801 100644 --- a/libraries/libldap/cache.c +++ b/libraries/libldap/cache.c @@ -387,9 +387,11 @@ ldap_check_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request ) return( -1 ); } + memset( &reqber, '\0', sizeof(reqber) ); reqber.ber_valid = LBER_VALID_BERELEMENT; reqber.ber_buf = reqber.ber_ptr = request->ber_buf; reqber.ber_end = request->ber_ptr; + reqber.ber_debug = ber_int_debug; c_time = time( NULL );