mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
More debug msg null pointer checks
This commit is contained in:
parent
52a0d00031
commit
3b2961fcc2
2 changed files with 4 additions and 4 deletions
|
|
@ -496,7 +496,7 @@ mdb_index_entry(
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
|
Debug( LDAP_DEBUG_TRACE, "=> index_entry_%s( %ld, \"%s\" )\n",
|
||||||
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
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 */
|
/* add each attribute to the indexes */
|
||||||
for ( ; ap != NULL; ap = ap->a_next ) {
|
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",
|
Debug( LDAP_DEBUG_TRACE, "<= index_entry_%s( %ld, \"%s\" ) success\n",
|
||||||
opid == SLAP_INDEX_DELETE_OP ? "del" : "add",
|
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;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -805,8 +805,8 @@ int mdb_tool_entry_reindex(
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld, \"%s\" )\n",
|
"=> " LDAP_XSTRING(mdb_tool_entry_reindex) "( %ld )\n",
|
||||||
(long) id, e->e_dn, 0 );
|
(long) id, 0, 0 );
|
||||||
|
|
||||||
op.o_hdr = &ohdr;
|
op.o_hdr = &ohdr;
|
||||||
op.o_bd = be;
|
op.o_bd = be;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue