]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 Dec 2021 17:12:47 +0000 (17:12 +0000)
servers/slapd/syncrepl.c

index bbb2c3572fa19e88b593a26a30cf793d0ba585d0..61392ca50a8cc56be214cc2ba6d65cecbd534eb3 100644 (file)
@@ -1084,7 +1084,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 );