mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
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:
parent
0b501e6c1f
commit
66254781d2
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user