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 panics in GetLDAPError #455

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

TomSellers
Copy link
Contributor

This PR addresses multiple panics in GetLDAPError as described in Issue #453. It does so by checking the response children for the expected tag type before attempting to extract the value. The PR also adds tests that should trigger all three panics if the fix is incorrect.

@TomSellers TomSellers changed the title Address panics in GetLDAPError Fix panics in GetLDAPError Aug 8, 2023
@cpuschma cpuschma added the bug label Aug 8, 2023
Copy link
Member

@cpuschma cpuschma left a comment

Choose a reason for hiding this comment

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

Thank you for your PR! ❤️

@cpuschma cpuschma merged commit a926d97 into go-ldap:master Aug 8, 2023
16 checks passed
@TomSellers TomSellers deleted the panic_in_GetLDAPError branch August 8, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants