mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#8841 Fix an assertion error in back-meta when network interface is unavailable
Because an API error code was assigned to sr_err, on network error back-meta would cause an assert error at result.c: 830 assert( !LDAP_API_ERROR( rs->sr_err ) );
This commit is contained in:
parent
6c5b7f7583
commit
17f1e32b65
@ -344,12 +344,15 @@ down:;
|
||||
|
||||
default:
|
||||
other:;
|
||||
/* convert rc to the correct LDAP error and send it back to the client:
|
||||
assing the error to rs, so we can use it as argument to slap_map_api2result
|
||||
and then assign the output back to rs->sr_err */
|
||||
rs->sr_err = rc;
|
||||
rc = slap_map_api2result( rs );
|
||||
rs->sr_err = slap_map_api2result( rs );
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &mi->mi_conninfo.lai_mutex );
|
||||
meta_clear_one_candidate( op, mc, candidate );
|
||||
candidates[ candidate ].sr_err = rc;
|
||||
candidates[ candidate ].sr_err = rs->sr_err;
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
LDAP_BACK_CONN_TAINTED_SET( mc );
|
||||
meta_back_release_conn_lock( mi, mc, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user