]> git.sur5r.net Git - openldap/commitdiff
Fix cache debugging (ITS#1501) based upon patch provided by
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 20:11:03 +0000 (20:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 20:11:03 +0000 (20:11 +0000)
Will Day <willday@rom.oit.gatech.edu>.

libraries/libldap/cache.c

index 82212582c1b02e6ebbc04aff244ca57f350ed93f..b53a1b580124b5ea06f99da32b9be71185af4fb1 100644 (file)
@@ -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 );