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.
This commit is contained in:
Ding Fei 2020-12-04 11:11:04 +08:00
parent 0b501e6c1f
commit 66254781d2

View File

@ -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 );
}