mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Fix disconnect bug
This commit is contained in:
parent
9275b09954
commit
60c5e77cd6
1 changed files with 2 additions and 1 deletions
|
|
@ -211,9 +211,10 @@ return_results:
|
|||
Debug( LDAP_DEBUG_TRACE, "<= get_ctrls: %d %d %s\n",
|
||||
nctrls, rc, errmsg ? errmsg : "");
|
||||
#endif
|
||||
|
||||
if( sendres && rc != LDAP_SUCCESS ) {
|
||||
if( rc == SLAPD_DISCONNECT ) {
|
||||
send_ldap_disconnect( conn, op, rc, errmsg );
|
||||
send_ldap_disconnect( conn, op, LDAP_PROTOCOL_ERROR, errmsg );
|
||||
} else {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, errmsg, NULL, NULL );
|
||||
|
|
|
|||
Loading…
Reference in a new issue