diff --git a/libraries/libldap/cache.c b/libraries/libldap/cache.c index 0e01394a90..c11f998bbe 100644 --- a/libraries/libldap/cache.c +++ b/libraries/libldap/cache.c @@ -387,6 +387,7 @@ ldap_check_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request ) return( -1 ); } + reqber.ber_valid = LBER_VALID_BERELEMENT reqber.ber_buf = reqber.ber_ptr = request->ber_buf; reqber.ber_end = request->ber_ptr;