Skip to content
Snippets Groups Projects
Commit 66254781 authored by Ding Fei's avatar Ding Fei
Browse files

ITS #9417 ldapexop exit with correct rc value

`rc` collects exit status all the way down but is not used at all? If `code`
comparison at exit is intended then there exists some path that leaves it in
garbage value, say when `ldap_whoami` or `ldap_cancel` fails.
parent 0b501e6c
Branches master
No related tags found
No related merge requests found
......@@ -351,5 +351,5 @@ skip:
/* disconnect from server */
if ( res )
ldap_msgfree( res );
tool_exit( ld, code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE );
tool_exit( ld, rc );
}
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