]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9707 also: don't log null cookie
authorHoward Chu <hyc@openldap.org>
Thu, 9 Dec 2021 17:51:39 +0000 (17:51 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 9 Dec 2021 17:51:39 +0000 (17:51 +0000)
servers/slapd/syncrepl.c

index 69d288efc900bca7f516746a76eb6b054e1f5ca2..ee7391c27cdf0c728a8b9bf83c46093e1a9cc06a 100644 (file)
@@ -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 );