mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
More debug msg null pointer checks
This commit is contained in:
parent
52a0d00031
commit
3b2961fcc2
@ -496,7 +496,7 @@ mdb_index_entry(
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
|
||||
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
||||
(long) e->e_id, e->e_dn );
|
||||
(long) e->e_id, e->e_dn ? e->e_dn : "" );
|
||||
|
||||
/* add each attribute to the indexes */
|
||||
for ( ; ap != NULL; ap = ap->a_next ) {
|
||||
@ -569,7 +569,7 @@ mdb_index_entry(
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "<= index_entry_%s( %ld, \"%s\" ) success\n",
|
||||
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
||||
(long) e->e_id, e->e_dn );
|
||||
(long) e->e_id, e->e_dn ? e->e_dn : "" );
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
@ -805,8 +805,8 @@ int mdb_tool_entry_reindex(
|
||||
*/
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld, \"%s\" )\n",
|
||||
(long) id, e->e_dn, 0 );
|
||||
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld )\n",
|
||||
(long) id, 0, 0 );
|
||||
|
||||
op.o_hdr = &ohdr;
|
||||
op.o_bd = be;
|
||||
|
Loading…
Reference in New Issue
Block a user