From: Howard Chu Date: Thu, 9 Dec 2021 17:51:39 +0000 (+0000) Subject: ITS#9707 also: don't log null cookie X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=453799eb978a24e6af8f4be4db5e4a0f9809ea4a;p=thirdparty%2Fopenldap.git ITS#9707 also: don't log null cookie --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 69d288efc9..ee7391c27c 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1097,7 +1097,8 @@ do_syncrep1( } Debug( LDAP_DEBUG_SYNC, "do_syncrep1: %s starting refresh (sending cookie=%s)\n", - si->si_ridtxt, si->si_syncCookie.octet_str.bv_val ); + si->si_ridtxt, si->si_syncCookie.octet_str.bv_val ? + si->si_syncCookie.octet_str.bv_val : "" ); if ( si->si_syncCookie.octet_str.bv_val ) { ldap_pvt_thread_mutex_lock( &si->si_monitor_mutex );