From ef2b505b2041722c8e30418f56805ee14139e81e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 12 Sep 2020 00:14:19 +0100 Subject: [PATCH] ITS#9043 Fix new log msg crashes Solaris stdio hates NULL pointers --- servers/slapd/overlays/syncprov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 3a4e96abea..4001caffe9 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1169,7 +1169,7 @@ syncprov_qresp( opcookie *opc, syncops *so, int mode ) } Debug( LDAP_DEBUG_SYNC, "%s syncprov_qresp: " "set up a new syncres mode=%d csn=%s\n", - so->s_op->o_log_prefix, mode, csn.bv_val ); + so->s_op->o_log_prefix, mode, csn.bv_val ? csn.bv_val : "" ); ldap_pvt_thread_mutex_unlock( &ri->ri_mutex ); ldap_pvt_thread_mutex_lock( &so->s_mutex );