mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
trap an issue that occurred in odd conditions
This commit is contained in:
parent
759638db20
commit
9b7dc0aa36
1 changed files with 12 additions and 0 deletions
|
|
@ -246,6 +246,18 @@ meta_back_search_start(
|
|||
struct timeval tv, *tvp = NULL;
|
||||
int nretries = 1;
|
||||
|
||||
/* this should not happen; just in case... */
|
||||
if ( msc->msc_ld == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"%s: meta_back_search_start candidate=%d ld=NULL%s.\n",
|
||||
op->o_log_prefix, candidate,
|
||||
META_BACK_ONERR_STOP( mi ) ? "" : " (ignored)" );
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
return META_SEARCH_ERR;
|
||||
}
|
||||
return META_SEARCH_NOT_CANDIDATE;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "%s >>> meta_back_search_start[%d]\n", op->o_log_prefix, candidate, 0 );
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue