mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Be consistent with bind responses on no upstream
This commit is contained in:
parent
a8a0fe26b0
commit
c228bd1160
1 changed files with 4 additions and 1 deletions
|
|
@ -649,6 +649,9 @@ request_process( Connection *client, Operation *op )
|
|||
Debug( LDAP_DEBUG_STATS, "request_process: "
|
||||
"connid=%lu, msgid=%d no available connection found\n",
|
||||
op->o_client_connid, op->o_client_msgid );
|
||||
|
||||
operation_send_reject(
|
||||
op, LDAP_UNAVAILABLE, "no connections available", 1 );
|
||||
goto fail;
|
||||
}
|
||||
op->o_upstream = upstream;
|
||||
|
|
@ -723,8 +726,8 @@ fail:
|
|||
ldap_pvt_thread_mutex_unlock( &upstream->c_io_mutex );
|
||||
CONNECTION_LOCK_DECREF(upstream);
|
||||
UPSTREAM_UNLOCK_OR_DESTROY(upstream);
|
||||
operation_send_reject( op, LDAP_OTHER, "internal error", 0 );
|
||||
}
|
||||
operation_send_reject( op, LDAP_OTHER, "internal error", 0 );
|
||||
CONNECTION_LOCK_DECREF(client);
|
||||
op->o_client_refcnt--;
|
||||
operation_destroy_from_client( op );
|
||||
|
|
|
|||
Loading…
Reference in a new issue