Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in acquiring credentials #41

Merged
merged 2 commits into from
Sep 25, 2020
Merged

Fix crash in acquiring credentials #41

merged 2 commits into from
Sep 25, 2020

Conversation

simo5
Copy link
Collaborator

@simo5 simo5 commented Sep 23, 2020

When a creedntial store is provide but no name is provided we end up
crashing by dereferencing the name.

Allow the request to proceed without a name, as it may be selected out
of a credential file, but if none was found, return an error.

Fixes #40
Fixes #42

Copy link
Member

@frozencemetery frozencemetery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in commit message - "creedntial"

When a credential store is provided, but no name is provided, we end up
crashing by dereferencing the name.

Allow the request to proceed without a name, as it may be selected out
of a credential file, but if none was found, return an error.

Signed-off-by: Simo Sorce <[email protected]>
The code was incorrectly immediately erroring out if no credential file is
provided. Change the code to try to look for external credentials in
case of any error in the previous code block.

Signed-off-by: Simo Sorce <[email protected]>
@simo5
Copy link
Collaborator Author

simo5 commented Sep 25, 2020

@frozencemetery the changes have been QAd by @kvv81 (see comment in #41), so they are redy for final review.

@simo5 simo5 merged commit 52b45b5 into gssapi:main Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants