From a642e3eb90a46ed81795111551f557e7d45d84bb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 9 Nov 2011 02:20:26 -0800 Subject: [PATCH] Check for NULL DN in debug msg --- servers/slapd/back-mdb/dn2id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-mdb/dn2id.c b/servers/slapd/back-mdb/dn2id.c index aebf57ced7..510375a436 100644 --- a/servers/slapd/back-mdb/dn2id.c +++ b/servers/slapd/back-mdb/dn2id.c @@ -149,7 +149,7 @@ mdb_dn2id_add( char *ptr; Debug( LDAP_DEBUG_TRACE, "=> mdb_dn2id_add 0x%lx: \"%s\"\n", - e->e_id, e->e_ndn, 0 ); + e->e_id, e->e_ndn ? e->e_ndn : "", 0 ); nrlen = dn_rdnlen( op->o_bd, &e->e_nname ); if (nrlen) { @@ -261,7 +261,7 @@ mdb_dn2id( ID pid, nid; struct berval tmp; - Debug( LDAP_DEBUG_TRACE, "=> mdb_dn2id(\"%s\")\n", in->bv_val, 0, 0 ); + Debug( LDAP_DEBUG_TRACE, "=> mdb_dn2id(\"%s\")\n", in->bv_val ? in->bv_val : "", 0, 0 ); if ( matched ) { matched->bv_val = dn + sizeof(dn) - 1; -- 2.39.5