Skip to content
Snippets Groups Projects
Commit 60c5e77c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix disconnect bug

parent 9275b099
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment