From 122b184a322c1e767b4bdacfbeded8390c05ef75 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 2 Oct 2007 18:39:43 +0000 Subject: [PATCH] also log cookie parsing --- servers/slapd/syncrepl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 ); -- 2.39.5