-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leaks on error in kadm5 init functions
In the GENERIC_CHECK_HANDLE function, separate out the version-checking logic so we can call it in the init functions before allocating resources. In the client and server library initialization functions, use a single exit path after argument validation, and share the destruction code with kadm5_destroy() via a helper.
- Loading branch information
1 parent
aa9b4a2
commit 552d7b7
Showing
3 changed files
with
145 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.