From: Howard Chu Date: Wed, 9 Nov 2011 10:20:26 +0000 (-0800) Subject: Check for NULL DN in debug msg X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a642e3eb90a46ed81795111551f557e7d45d84bb;p=openldap Check for NULL DN in debug msg --- 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;