Skip to content
Snippets Groups Projects
Commit 8e738d75 authored by Ding Fei's avatar Ding Fei Committed by Quanah Gibson-Mount
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 852c47be
No related branches found
No related tags found
No related merge requests found
...@@ -351,5 +351,5 @@ skip: ...@@ -351,5 +351,5 @@ skip:
/* disconnect from server */ /* disconnect from server */
if ( res ) if ( res )
ldap_msgfree( 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