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 );