From: Pierangelo Masarati Date: Tue, 2 Oct 2007 18:39:43 +0000 (+0000) Subject: also log cookie parsing X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~567 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=122b184a322c1e767b4bdacfbeded8390c05ef75;p=openldap also log cookie parsing --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 3499f94fe4..3e6a62753e 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -796,6 +796,10 @@ do_syncrep2( } if ( ber_peek_tag( ber, &len ) == LDAP_TAG_SYNC_COOKIE ) { ber_scanf( ber, /*"{"*/ "m}", &cookie ); + + Debug( LDAP_DEBUG_SYNC, "do_syncrep2: cookie=%s\n", + BER_BVISNULL( &cookie ) ? "" : cookie.bv_val, 0, 0 ); + if ( !BER_BVISNULL( &cookie ) ) { ch_free( syncCookie.octet_str.bv_val ); ber_dupbv( &syncCookie.octet_str, &cookie ); @@ -863,6 +867,10 @@ do_syncrep2( ber_scanf( ber, "{" /*"}"*/); if ( ber_peek_tag( ber, &len ) == LDAP_TAG_SYNC_COOKIE ) { ber_scanf( ber, "m", &cookie ); + + Debug( LDAP_DEBUG_SYNC, "do_syncrep2: cookie=%s\n", + BER_BVISNULL( &cookie ) ? "" : cookie.bv_val, 0, 0 ); + if ( !BER_BVISNULL( &cookie ) ) { ch_free( syncCookie.octet_str.bv_val ); ber_dupbv( &syncCookie.octet_str, &cookie); @@ -951,6 +959,10 @@ do_syncrep2( if ( ber_peek_tag( ber, &len ) == LDAP_TAG_SYNC_COOKIE ) { ber_scanf( ber, "m", &cookie ); + + Debug( LDAP_DEBUG_SYNC, "do_syncrep2: cookie=%s\n", + BER_BVISNULL( &cookie ) ? "" : cookie.bv_val, 0, 0 ); + if ( !BER_BVISNULL( &cookie ) ) { ch_free( syncCookie.octet_str.bv_val ); ber_dupbv( &syncCookie.octet_str, &cookie ); @@ -978,6 +990,10 @@ do_syncrep2( LDAP_TAG_SYNC_COOKIE ) { ber_scanf( ber, "m", &cookie ); + + Debug( LDAP_DEBUG_SYNC, "do_syncrep2: cookie=%s\n", + BER_BVISNULL( &cookie ) ? "" : cookie.bv_val, 0, 0 ); + if ( !BER_BVISNULL( &cookie ) ) { ch_free( syncCookie.octet_str.bv_val ); ber_dupbv( &syncCookie.octet_str, &cookie );