Report mbe->register_entry() errors

This commit is contained in:
Ondřej Kuzník 2021-04-21 14:50:00 +01:00 committed by Quanah Gibson-Mount
parent f9b5163670
commit c472639170

View File

@ -462,6 +462,7 @@ monitor_back_register_entry(
unsigned long flags )
{
monitor_info_t *mi;
int rc = 0;
if ( be_monitor == NULL ) {
Debug( LDAP_DEBUG_ANY,
@ -484,7 +485,6 @@ monitor_back_register_entry(
struct berval pdn = BER_BVNULL;
monitor_entry_t *mp = NULL,
*mp_parent = NULL;
int rc = 0;
if ( monitor_cache_get( mi, &e->e_nname, &e_parent ) == 0 ) {
/* entry exists */
@ -615,7 +615,7 @@ done:;
**elpp = el;
}
return 0;
return rc;
}
int